Stoyan Zhekov's THOUghts TRash.

Pushing and Pulling Branches on Github

Original article What worked for me (tamanegi/open-uri branch):

# create local branch
$ git checkout -b open-uri

# pushing branch
$ git push origin open-uri

# pulling remote branch
# (one time only - trac remote branch with local one)
$ git branch -d open-uri
$ git branch -f open-uri origin/open-uri
# (regular updates)
$ git checkout open-uri
$ git pull

# merge and delete
$ git checkout master
$ git merge open-uri
$ git push origin :open-uri

Comments (View)
blog comments powered by Disqus