Linked Questions

0 votes
0 answers
53 views

Something has happened to my local copy of a Git repo. When I try to synch it to the server (git pull) I get the following message. Updating 060b8f7..af17d97 error: Your local changes to the following ...
Jonathan Sachs's user avatar
5792 votes
47 answers
4.7m views

How do I squash my last N commits together into one commit?
markdorison's user avatar
269 votes
25 answers
164k views

I would like to remove all changes to my working copy. Running git status shows files modified. Nothing I do seems to remove these modifications. E.g.: rbellamy@PROMETHEUS /d/Development/rhino-etl (...
rbellamy's user avatar
  • 5,863
43 votes
7 answers
30k views

I'm working on a project where we have recently started using git. The setup was not perfect from start, so I've set up .gitattributes after people started cloning/working and I'm still making some ...
jgreen81's user avatar
  • 817
20 votes
2 answers
16k views

I have a file using git lfs, but even without me doing anything, it just shows up on git as having changes. I am unable to discard these changes, whether through the VS Code UI, through git reset, or ...
Samson's user avatar
  • 2,038
9 votes
2 answers
6k views

I installed git-lfs using homebrew, and it works fine from the command line. I can still add text files in Xcode as well, but whenever I try in Xcode to add a file which should be tracked by git-lfs, ...
andyvn22's user avatar
  • 14.8k
1 vote
2 answers
3k views

I have a strange situation where following some commit a file is left modified in Git and I just cannot undo it. We are using LFS and the file is a binary file. LFS is installed on my machine and is ...
mark's user avatar
  • 63.6k
7 votes
1 answer
553 views

I try to find a way to determine whether the files in git repository are correctly managed by git-lfs. So far, I have found that comparing results from git lfs ls-files and git ls-files ':(attr:...
Eugene Podskal's user avatar
0 votes
1 answer
753 views

could someone explain to me what this series of commands actually do? git rm --cached -r . git reset --hard git rm .gitattributes git reset . git checkout . I took it from an answer to Git error: ...
Nicolai's user avatar
  • 62
1 vote
1 answer
1k views

In my repo, I have large files committed in history and also present in the latest commit. I want to use git lfs migrate --no-rewrite so that the previous commit's SHAs does not get changed. But will -...
Toral's user avatar
  • 315
1 vote
0 answers
462 views

I am looking in how can I merge existing submodule to my main repository. Basically currently my repository looks somehing like this ├── example1.java ├── example2.java ├── img | └── image.jpg └── ...
Ghorio Fuitton's user avatar