diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2010-04-08 23:43:29 -0400 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2010-04-08 23:43:29 -0400 |
commit | 5bf6a8633c4981e326c5c6bcaf5531665f10f77d (patch) | |
tree | c34677765b2c5f03104f06432637469e68d1a6f2 | |
parent | Added initial readme file. (diff) | |
download | GitTools-5bf6a8633c4981e326c5c6bcaf5531665f10f77d.tar.xz GitTools-5bf6a8633c4981e326c5c6bcaf5531665f10f77d.zip |
Added branch creation script and updated readme.
-rwxr-xr-x | NewProject.sh | 7 | ||||
-rw-r--r-- | README.txt | 8 |
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." @@ -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. |