Your branch is ahead of 'origin/master' by 1 commit

后端 未结 4 1888
别跟我提以往
别跟我提以往 2021-01-28 13:37

I\'m a little new to Git, and I\'m hoping somebody can explain what this message means exactly, in my scenario.

To give you some background information, this is what I\'

4条回答
  •  庸人自扰
    2021-01-28 14:08

    So you have cloned, created a new branch, made some changes and committed them to your branch. I assume you have used

    git push -u origin 
    

    Since you have made a new commit to your branch, it says 'your branch is ahead of master by 1 commit'.

    Since you have committed the changes and pushed it to remote, you cannot view the differences in the files using git diff and cannot view your modified files using git status, since they are not in the staging area anymore.

提交回复
热议问题