Git Push/Pull Alias Functions

I’ve been using Git for just over two years now. It’s one of the few systems left that doesn’t have a graphical user interface I prefer. In the past years, many choices have either been launched or announced but I’m still a command-line only person.

I grew tired of typing the full push/pull commands so I’ve finally spent some time searching for the best bash function on the net… which appears to be http://forrst.com/posts/My_gitstuff_bash_shortcuts_for_working_with_g-BwI

Edit your bash profile and place the “gpush” and “gpull” functions after anything that currently exists. I personally didn’t use the aliases shown in the pasted code sample, as I already use a different set.

vi ~/.bash_profile

When running gpush or gpull they will activate the associated commands on the current branch.

Possibly related posts:

  1. Git Status in Command Line

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment