Handy Bash Function for Creating Branches

Steven Silvester steven.silvester at gmail.com
Sat Oct 11 16:04:57 EDT 2014



Hi all,

I added the following to my .bashrc for creating new branches:

function gn() {
    git checkout -b "$1" upstream/master
}

I use it as follows:

$ gn temp2
Branch temp2 set up to track remote branch master from upstream.
Switched to a new branch 'temp2'

This saves me from forgetting to branch against upstream master all the 
time.

Regards, 

Steve
​
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/scikit-image/attachments/20141011/c77ae46c/attachment.html>


More information about the scikit-image mailing list