projects
/
lcr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
a555eb7
)
new file: checkout-branch.sh
author
Andreas Eversberg
<jolly@eversberg.eu>
Sat, 16 Jan 2010 10:30:15 +0000
(11:30 +0100)
committer
Andreas Eversberg
<jolly@eversberg.eu>
Sat, 16 Jan 2010 10:30:15 +0000
(11:30 +0100)
checkout-branch.sh
[new file with mode: 0644]
patch
|
blob
diff --git a/checkout-branch.sh
b/checkout-branch.sh
new file mode 100644
(file)
index 0000000..
cdb9ab4
--- /dev/null
+++ b/
checkout-branch.sh
@@ -0,0
+1,14
@@
+#!/bin/bash
+
+#checks out the given branch
+
+if [ "$1" = "" ] ; then
+ echo "please provide one of the branch names:"
+ git branch -a
+ exit
+fi
+
+git checkout -b $1 origin/$1
+git config branch.$1.remote origin
+git config branch.$1.merge refs/heads/$1
+