Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [.git-folder]

The .git folder contains all the information related to the project's Git version control history and metadata.

.git-folder
0 votes
1 answer
316 views

Avoid including coverage folder created from running yarn coverage using vitest in git commit

Our team is using vitest, vitest-environment-nuxt, nuxt-vitest for component unit testing,provider for creating coverage report is v8,using package @vitest/coverage-v8. What I want to achieve is ...
EquilibriumOfMyOwn's user avatar
0 votes
0 answers
7 views

Uploaded 'server' Folder Appears Empty on GitHub Despite Local Functionality

To provide some context, I initially included the 'server' folder after the repository was established. Locally, it integrates seamlessly with the rest of the project and operates without any hitches. ...
parth ratra's user avatar
0 votes
1 answer
32 views

I want to change remote git url to example2.git in ubuntu

Here i am attaching my problem. I want my repository to be hairbodyskin-production. But it is not changing. It should not be cw-community. I tried this ` git config remote.origin.url https://x-token-...
Sanaullah Ahmad's user avatar
1 vote
1 answer
67 views

What are the references within Git's pack/ and info/ folders?

I have read the relevant git documentation: https://git-scm.com/book/en/v2/Git-Internals-Git-References I have not found any information about the .git/objects/refs/heads/info directory; though I ...
user9329423's user avatar
0 votes
0 answers
96 views

VS code not showing .git file in version control which is added in subfolder of project

I added .git folder in subfolder(not in root folder) in one of my project. but it is not showing in version control of vs code. I tried added in .git in main folder then it is adding all files for ...
yagnesh's user avatar
1 vote
1 answer
1k views

Which folders I should put in .gitignore file after creating a project with Clion?

When I run a program with CLion, I have the below directories and files generated automatically except Problem Details.txt Mode LastWriteTime Length Name --------------------...
XmM14's user avatar
  • 11
0 votes
2 answers
846 views

How to un-initialize a git folder in the root of my pc? [duplicate]

I am beginner with git. A few weeks ago, I unintentionally created a "git init" on the root of my pc (location: desktop) which means all of my computer files are on that git folder. How can ...
user3040230424's user avatar
-1 votes
1 answer
64 views

My entire folder with in-built program files is a working directory for git, it has been tracking all my files, I want to remove .git entirely

I do not know to use git bash I ended up doing something and now it's been tracking all my files, what should I do to remove that entirely from my system? The files that are being tracked: I thought ...
Varshaa Shetty's user avatar
1 vote
1 answer
95 views

How do I delete a mistakenly-migrated .git directory from the tree of a Git repository?

Several months ago, we migrated a bunch of Subversion repositories to Git using svn-all-fast-export. (That information explains how this directory got in the Git directory in the first place, but ...
Nick Williams's user avatar
0 votes
1 answer
259 views

Tagging a commit produces different hash in .git folder [duplicate]

As I was working on a project in Azure Repos, I noticed that the commit hash value inside .git/refs/tags/my-tag compared to the hash of the commit shown in the UI (which is the 'real' one) differed. ...
Omer Zidkoni's user avatar
0 votes
0 answers
35 views

PowerShell, posh-git is reporting .gitignore'd folders as being part of the repo

I have a git project spawns a lot of nested sub-folders beside the project (I need the project to be at the root of this folder tree for various reasons). All of these subfolders are in my .gitignore ...
YorSubs's user avatar
  • 3,752
3 votes
2 answers
7k views

npm ERR! husky - .git can't be found WINDOWS

I'm trying to install mattlewis92's angular 14.0+ calendar, which suggests the use of the command ng add angular-calendar. However when doing so I got an error: npm ERR! command C:\Windows\system32\...
Naydenow's user avatar
0 votes
1 answer
57 views

how to make `git --bare` with all files within `.git/`

I am using bare repositories in addition to git worktree add to manage to handle multiple branches at the same time. It turns out git clone --bare moves all files from .git/ to ./, and it is very hard ...
user avatar
-1 votes
1 answer
537 views

pushing new changes to GitHub after deleting hidden .git directory

I've removed the hidden .git file from the project folder as I wanted to test pushing to a github directory from a new machine, can anyone list below the proper steps? This is the message I got from ...
Брент Скофeлд's user avatar
0 votes
0 answers
777 views

adding nested .git folders inside .gitignore

This question shows how to use .gitignore to ignore various locations of bin folder inside your project. I've tried the same but with .git folder. I've put .git/ inside my .gitignore then run git init ...
Wakan Tanka's user avatar
  • 7,892

15 30 50 per page