No idea why this is happening:
git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: file (modified content)
no changes added to commit (use "git add" and/or "git commit -a")
starkers@ubuntu:~/Documents/currentWork/protection_demo$ git add --all
starkers@ubuntu:~/Documents/currentWork/protection_demo$ git status
On branch master
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)
(commit or discard the untracked or modified content in submodules)
modified: file (modified content)
No matter what I do, git commit -am
, git commit -a
the file will not be added to the commit. Any help?
git add <file>
? – Semblable.gitignore
doesn't the ability to stage changes in that file, though. – Luckygit checkout -- .
... in my case it's a clone from overleaf, I wonder if their git implementation is still a bit buggy? – Pennsylvanian