Skip to content

Instantly share code, notes, and snippets.

@gilesbowkett
Created April 24, 2013 17:52
Show Gist options
  • Save gilesbowkett/6f9fadb6c0867d42f75d to your computer and use it in GitHub Desktop.
Save gilesbowkett/6f9fadb6c0867d42f75d to your computer and use it in GitHub Desktop.
git shell functions
# copy into ~/.profile
function sync_hautelook() {
git co master &&
git fetch gavacho &&
git fetch ethanselzer &&
git fetch jedhunsaker &&
git fetch upstream &&
git merge upstream/master &&
git push origin master &&
git st
}
function which_git_branch_am_i_on() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/'
}
function blam() {
git push origin $(this)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment