In a feature branch of a repository I get mixed messages from git:
λ git status
On branch feature/****
Your branch is up-to-date with 'origin/feature/****'.
Changes not staged for commit:
(use "git add/rm <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)
deleted: path/to/file/abc.tf
Untracked files:
(use "git add <file>..." to include in what will be committed)
path/to/file/abc.tf
no changes added to commit (use "git add" and/or "git commit -a")
This file is tracked (and should be) by the remote repository.
How do I resolve these messages so that git status
gives me no changes or untracked files?
- I have tried to
git pull
-> nothing happens. - I have tried a clean install
git clone
-> Same messages - I have tried to remove abc.tf from the directory and then
git checkout -f
-> back to where I started. - I have tried
git reset --hard HEAD
-> nothing happens. - I have not tried commiting the file again, because I would rather not if I can resolve in localy. But maybe that is the only solution?
- abc.tf is not in my .gitignore
I usually work on linux and these messages dont show there, only on Windows (although I havent tried a clean install on Linux).
Bonus points if you can tell me why this is happening and how to avoid it.