git status says:
$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 2 commits.
You want to git push only one of those commits to the public repo. Here’s how:
First use git log to get the commit hash of the commit you want to push. Then:
$ git push origin <thelonghash>:master
example:
$ git push origin 7605596d45d2e3812da1e22db447fc6f1fe6f876:Dev-5.0
No comments:
Post a Comment