Questions tagged [.git-folder]
The .git folder contains all the information related to the project's Git version control history and metadata.
.git-folder
39
questions
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 ...
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. ...
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-...
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 ...
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 ...
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
--------------------...
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 ...
-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 ...
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 ...
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. ...
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 ...
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\...
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 ...
-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 ...
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 ...