You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a modified file (echo "new line" >> readme.txt).
If I run this code, I got a modified file in worktree and index at the same time with the same content.
If I run git add file, this will be added correctly :
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: readme.md
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: readme.md
If I run git add file, the output is like that:
$ git status
On branch master
Your branch is up to date with 'origin/master'.
Changes to be committed:
(use "git restore --staged <file>..." to unstage)
modified: readme.md
The text was updated successfully, but these errors were encountered:
Development environment details:
cat ~/.gitconfig
I have a modified file (echo "new line" >> readme.txt).
If I run this code, I got a modified file in worktree and index at the same time with the same content.
If I run git add file, this will be added correctly :
git diff
shows no changes:If I run
git add file
, the output is like that:The text was updated successfully, but these errors were encountered: