Skip to content

Instantly share code, notes, and snippets.

@schwern
Created March 16, 2010 18:38
Show Gist options
  • Select an option

  • Save schwern/334344 to your computer and use it in GitHub Desktop.

Select an option

Save schwern/334344 to your computer and use it in GitHub Desktop.
#!/usr/local/bin/perl
# Create a remote branch
my($remote, $branch, $start) = @ARGV;
die "$0 <remote> <newbranch> <start>\n" if @ARGV < 2;
$start ||= $remote;
system("git push $remote $start:refs/heads/$branch");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment