summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJason A. Donenfeld <Jason@zx2c4.com>2010-04-08 23:43:29 -0400
committerJason A. Donenfeld <Jason@zx2c4.com>2010-04-08 23:43:29 -0400
commit5bf6a8633c4981e326c5c6bcaf5531665f10f77d (patch)
treec34677765b2c5f03104f06432637469e68d1a6f2
parentAdded initial readme file. (diff)
downloadGitTools-5bf6a8633c4981e326c5c6bcaf5531665f10f77d.tar.xz
GitTools-5bf6a8633c4981e326c5c6bcaf5531665f10f77d.zip
Added branch creation script and updated readme.
-rwxr-xr-xNewProject.sh7
-rw-r--r--README.txt8
2 files changed, 14 insertions, 1 deletions
diff --git a/NewProject.sh b/NewProject.sh
new file mode 100755
index 0000000..0469d50
--- /dev/null
+++ b/NewProject.sh
@@ -0,0 +1,7 @@
+#!/bin/sh
+
+git symbolic-ref HEAD "refs/heads/$1"
+rm .git/index
+git clean -fdxq
+
+echo "Switched to new branch \"$1\". Make an initial commit."
diff --git a/README.txt b/README.txt
index 9018993..686331f 100644
--- a/README.txt
+++ b/README.txt
@@ -1 +1,7 @@
-Welcome to the AnyClip Labs git repository. Each labs project is a seperate "branch". There is currently nothing in the master branch.
+Welcome to the AnyClip Labs git repository. Each labs project is a seperate "branch".
+
+To create a new branch for a new project, run
+
+./NewProject MyNewProject
+
+and then make your first commit. It's customary not to use spaces in the branch name.