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

前端 未结 6 1276
眼角桃花
眼角桃花 2020-12-12 10:03

I am newbie in git and I am working on git.

I added some files in git :

git add 
git add 

then I want

6条回答
  •  旧时难觅i
    2020-12-12 10:52

    git reset HEAD^ --soft (Save your changes, back to last commit)

    git reset HEAD^ --hard (Discard changes, back to last commit)

提交回复
热议问题