I found many questions with similar subject, but I didn't found any practical guidance about this issue: why git status
informs me nothing to commit, working directory clean
, even tough I have made a modification at my local branch?
Here are the steps which I followed:
git init
[On branch master - Initial commit, nothing to commit (create/copy files and use "git add" to track)]git remote add https://github.com/username/project.git
git pull origin master
touch test
git add test
git commit -m "Adding file for test purposes only."
git status
[On branch master - nothing to commit, working directory clean]
If I do a git push
, the modification is committed to the remote branch. I just want to perform "git status" after my modifications, and receive the information that I have changes on my local branch that must be pushed to the remote branch of the project.
What's going on?