Better HN
topnewbestaskshowjobs
Log inSign up

wmcc

8 karma · joined Apr 16, 2010 (16y ago) · 3 submissions

Submissions

comment 16y ago · link · parent

Since we learn from the online docs, doesn't your statement imply that Gits online documentation isn't very good?

comment 16y ago · link · parent

I think the author meant these commands as I'm in the same OS class and this script has been circulating around the class:

$ cat git-create-branch #!/bin/sh

if [ $# -ne 1 ]; then echo 1>&2 Usage: $0 branch_name exit 127 fi

branch_name="$1" git push origin origin:refs/heads/${branch_name} git fetch origin git checkout --track -b ${branch_name} origin/${branch_name} git pull

comment 16y ago · link · parent

Troll