I am using the "Integration-Manager" workflow with Git, while using gitolite for permission management. Gitolite has this neat option for easily managing personal user branches in:
refs/personal/USERNAME/USERBRANCHNAME
In our case, these are the only branches to which the developers have write access. This means they are routinely pulling from the "blessed" repository, which is the "master" branch on the "origin" remote, like so:
$ git pull origin master
However, they need to routinely push their work back up to their personal branches, like so:
$ git push origin master:refs/personal/mysuername/mybranchname
Typing those long branch names gets old, really fast, especially for the integrator, who is having to pull routinely from various, long branch names. Most people want to type something simpler, like:
$ git push origin master:mybranchname
So, my question is, "How do I make this easier with shorter names and reduced typos?" Is there some way to create an alias or shortcut for the user's remote branch? Our integrator would like to be able to create aliases for each of the developers to simplify her commands also.
Also, is it possible to configure git to always pull from one branch and push to a different branch without having to specify the remote and branch names in both cases? This would help our developers, although it would not help our integrator. ... I'm familiar with configuring a single default to push and pull from the same remote and branch, but that does not work in this case, since the push and pull branches are different.
Thanks!