Skip to content

Instantly share code, notes, and snippets.

View rogeralsing's full-sized avatar
😈
Feeling Awesome

Roger Johansson rogeralsing

😈
Feeling Awesome
View GitHub Profile
@skotzko
skotzko / update_oss_fork.bash
Last active August 29, 2015 14:14
Two aliases you can use to update your fork / repo of an OSS project easily. Uses current local branch name for remote target.
# add to .bash_profile
# uses current local branch name for remote target.
# e.g. if on branch 'dev' will fetch & merge upstream/dev into local 'dev' branch
alias branch="git symbolic-ref --short -q HEAD"
alias update_fork='git fetch upstream && git merge upstream/$(branch) $(branch) && $(push)'