Handy Bash Function for Creating Branches
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
On 2014-10-11 22:04:57, Steven Silvester
Hi all,
I added the following to my .bashrc for creating new branches:
function gn() { git checkout -b "$1" upstream/master }
Since we're on the topic: https://gist.github.com/stefanv/e9135cc899deda1141b0 git-nr xyz -- Create a new remote for GitHub user xyz git-pr 100 -- Check out pr #100 into branch pr/100 git-wipe filename -- Remove filename from the repo entirely Stéfan
hub from the github folks (https://github.com/github/hub) also
automates a bunch of stuff like adding remotes/cloning from gh.
Tom
On Sat, Oct 11, 2014 at 6:22 PM, Stefan van der Walt
On 2014-10-11 22:04:57, Steven Silvester
wrote: Hi all,
I added the following to my .bashrc for creating new branches:
function gn() { git checkout -b "$1" upstream/master }
Since we're on the topic:
https://gist.github.com/stefanv/e9135cc899deda1141b0
git-nr xyz -- Create a new remote for GitHub user xyz git-pr 100 -- Check out pr #100 into branch pr/100 git-wipe filename -- Remove filename from the repo entirely
Stéfan
-- You received this message because you are subscribed to the Google Groups "scikit-image" group. To unsubscribe from this group and stop receiving emails from it, send an email to scikit-image+unsubscribe@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
-- Thomas Caswell tcaswell@gmail.com
participants (3)
-
Stefan van der Walt
-
Steven Silvester
-
Thomas Caswell