V
V
Valentin Fetisov2017-01-12 16:27:23
git
Valentin Fetisov, 2017-01-12 16:27:23

Need help with GIT! Your branch is ahead of 'origin/master' by 3 commits. (use "git push" to publish your local commits)?

I will briefly describe the situation:
I finished working with my branch, filed a Pull Request for it, it was approved. After that, I download the updates of the master from the github and gives me this. How can I fix the error without changing anything and without updating the master branch on the server?
MacBook-Pro:mebel_fe9 vfetisov$ git co master
Switched to branch 'master'
Your branch is ahead of 'origin/master' by 3 commits.
(use "git push" to publish your local commits)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Victor, 2017-01-12
@valentikus

It's not a bug, it's just the status of the branch you've moved to.
It says there are 3 commits that are not pushed to the server.
Therefore, if you need "without changing anything and without updating the master branch on the server", then you don't need to do anything.

K
kpa6uu, 2017-01-12
@kpa6uu

this is git saying that you have three uncommitted commits in this branch. You must either push them or stash them (git stash)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question