git branch issue -


i have local system work (windows) , commit changes , production server (ubuntu) pull changes.

i create new branch when have major changes on code. last branch 0.9.1

i pull on server with:

sudo git pull git@git.myrepo.com:myproject.git 0.9.1

however, wanted roll previous branch (0.9) , can see when branch -a:

* master   remotes/origin/0.1   remotes/origin/0.2   remotes/origin/0.3   remotes/origin/0.4   remotes/origin/0.5   remotes/origin/0.6   remotes/origin/0.7   remotes/origin/head -> origin/master   remotes/origin/master 

on local machine use git gui , can see branch 0.9 (and 0.8 , 0.9.1) how come cannot see on server?

thanks

you should checkout local branch try instead of git pull:

git checkout -b 0.9.1 

after that, work push changes remote:

git push origin 0.9.1 

off topic, should consider tags instead of branches major releases.


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -