Permalink
Browse files

After I create a new github repo branch.master.* isn't set up, add a …

…script to do that
  • Loading branch information...
1 parent 3d6eda6 commit 2ce9ce717c5b8afc6cabe63b95662090153ebeae @avar committed Feb 5, 2010
Showing with 19 additions and 0 deletions.
  1. +19 −0 git-setup-master
View
@@ -0,0 +1,19 @@
+#!/bin/bash
+
+# After I create a new github repo branch.master.* isn't set up
+# correctly. This command takes care of setting it up.
+
+function dump_config {
+ git config --list | grep ^branch.master | perl -pe 's/^/ /';
+}
+
+echo "Configuration was:"
+dump_config
+
+git config branch.master.remote origin
+git config branch.master.merge refs/heads/master
+
+echo "Configuration is now:"
+dump_config
+
+

0 comments on commit 2ce9ce7

Please sign in to comment.