Linked Questions
12 questions linked to/from Error with Previously Committed Files Which Matches New Git LFS Filter
0 votes
0 answers
53 views
Bogus Git error message... can't fix or work around it [duplicate]
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 ...
5792 votes
47 answers
4.7m views
How do I squash my last N commits together?
How do I squash my last N commits together into one commit?
269 votes
25 answers
164k views
git status shows modifications, git checkout -- <file> doesn't remove them
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 (...
43 votes
7 answers
30k views
How to make change to .gitattributes take effect
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 ...
20 votes
2 answers
16k views
git lfs cannot discard file changes (encountered files that should have been pointers)
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 ...
9 votes
2 answers
6k views
Xcode and git-lfs
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, ...
1 vote
2 answers
3k views
Unable to undo a file in Git
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 ...
7 votes
1 answer
553 views
Is comparing git lfs ls-files with git ls-files ':(attr:filter=lfs)' a reliable way to detect lfs files that are not managed by lfs?
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:...
0 votes
1 answer
753 views
Git LFS alteration: what does this odd sequence of commands really do
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: ...
1 vote
1 answer
1k views
Does git lfs migrate --no-rewrite change all the branches? And will it change the large file from history to LFS objects?
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 -...
1 vote
0 answers
462 views
Merging git submodule inside main repository with LFS objects
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 └── ...