Once I got a problem. I have tried to checkout my master branch dev. But got an irrelevant message. thats given below.
$ git checkout dev
Switched to branch 'dev'
Your branch is ahead of 'origin/dev' by 1 commit.
(use "git push" to publish your local commits)
My manager give me a quick solution thats given below:
$ git reset --hard HEAD~1
$ git checkout dev
Switched to branch 'dev'
Your branch is ahead of 'origin/dev' by 1 commit.
(use "git push" to publish your local commits)
My manager give me a quick solution thats given below:
$ git reset --hard HEAD~1
No comments:
Post a Comment