Skip to content

Instantly share code, notes, and snippets.

View roelofb's full-sized avatar

Roelof Blom roelofb

View GitHub Profile
@miguelgonz
miguelgonz / git sync
Created August 28, 2014 14:30
git sync
#!/bin/sh
#To make use of this just copy it to your path, +x it, and do git sync
MAIN_BRANCH="develop"
CURRENT_CHANGES=`git status --porcelain`
CURRENT_BRANCH=`git symbolic-ref -q --short HEAD`
if [ "$CURRENT_CHANGES" != "" ]; then
git stash --include-untracked
fi