Hi,
we're using a central git repository which I've cloned and I'm working on a local branch. When I want to make my changes available in the central repository, I have to issue the following commands (starting on mybranch):
#Stash local changes not yet ready for checkin
git stash
#Make sure we have all changes from the central repository
git checkout master
git pull
#Rebase local changes
git checkout mybranch
git rebase
#Push changes
git checkout master
git merge mybranch
git push
#Back to my branch and continue work
git checkout mybranch
git stash apply
I'd like to know if it is possible to use fewer git commands to accomplish the same goal. Especially the several switches between master and mybranch are very annoying, as our repository is rather huge so they take some time.
Ciao,
Steffen