Skip to main content
-3 votes
2 answers
119 views

I created a branch to do some work on, tried to merge another branch into it, and immediately ran into an insurmountable merge conflict. Clearly the thing to do was abandon the branch and start over. ...
Steve Summit's user avatar
  • 49.2k
2 votes
2 answers
256 views

Explanation: I make a heavy use of Git staging area to keep track of the changes that I'm already sure of while the working directory is often a mess of untested solutions, TODOs and a code that is ...
Piotr Siupa's user avatar
  • 5,169
1 vote
0 answers
217 views

I tried removing manually the following submodule from my local repository: components/CtrlFuelSuppHtr Removed it from these three places: .git folder, components folder, and deleted it on .gitmodules....
tadm123's user avatar
  • 8,899
3 votes
0 answers
575 views

I'm trying to checkout a specific commit ID along with all its submodules. git checkout --recurse-submodules 7fdb9221d958acda289904951fe6d37873e8cfbf But I'm getting the following error: fatal: not a ...
tadm123's user avatar
  • 8,899
0 votes
1 answer
294 views

Suppose that I am running a script inside a Git repository and want to access the index file directly. How can I get the path to the index file, in a way that also respects e.g. worktrees?
Waleed Khan's user avatar
  • 11.5k
5 votes
1 answer
1k views

I run git gc in a repository and get a fatal error: Enumerating objects: 2382, done. Counting objects: 100% (2382/2382), done. Delta compression using up to 8 threads Compressing objects: 100% (747/...
Joe's user avatar
  • 31.4k
1 vote
0 answers
31 views

Let's create a small local repository: git init echo foo > foo git add foo git commit -m foo git branch bar echo foo >> foo git commit -a -m 'another foo' If we do this now, we replace our ...
Michi's user avatar
  • 701
0 votes
0 answers
2k views

I'm initializing a repo in a Google Drive folder which contains a gsheet file. When I index the folder this error happens: git add . error: read error while indexing file.gsheet: Invalid argument ...
Ooker's user avatar
  • 3,404
1 vote
1 answer
283 views

After running the interactive staging git command $ git add -i and choosing one of the options for example "update", then I don't know how to get back to the root level to choose another ...
muel's user avatar
  • 73
3 votes
1 answer
246 views

I'm looking for a way to include specific parts of stashes in stage. I'm using TIG frontend, so the method can involve some low level offset, etc. calculation. However currently I don't have any idea ...
psprint's user avatar
  • 359
0 votes
1 answer
714 views

My use case is that I have a very large GIT repository created by uidA:gidA with all its files and git index as uidA:gidA That I have snapshoted/frozen using netapp file system technology aka froze ...
Sarvi Shanmugham's user avatar
3 votes
1 answer
733 views

I've come across this statement in git documentation: Checking out a file is similar to using git reset with a file path, except it updates the working directory instead of the stage Link:https://www....
caffein's user avatar
  • 333
5 votes
1 answer
1k views

When there's a conflict, git status shows this: Unmerged paths: (use "git restore --staged <file>..." to unstage) (use "git add <file>..." to mark resolution) ...
Enlico's user avatar
  • 30.3k
0 votes
2 answers
111 views

I'm trying to use git update-index --again to re-add modified files to the index. This works fine, but only for files/directories in the current directory. Is this expected behavior for this command ...
planetp's user avatar
  • 16.6k
0 votes
0 answers
39 views

I want to base my new project off of an existing git repo. My intention is not to extend the current project but to start a new project with different aims. Specifically I want to remove the original ...
Evolve's user avatar
  • 9,301

15 30 50 per page
1
2 3 4 5 6