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.
Can someone tell me what's going? Straight to the point, please.
Thanks in advance SO community!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…