Add "git-clone-script" thingy
It's just a trivial wrapper, but it should make Jeff's kernel developer guide to git look a bit less intimidating.
This commit is contained in:
7
git-clone-script
Executable file
7
git-clone-script
Executable file
@ -0,0 +1,7 @@
|
||||
#!/bin/sh
|
||||
repo="$1"
|
||||
dir="$2"
|
||||
mkdir $dir || exit 1
|
||||
cd $dir
|
||||
git-init-db
|
||||
git fetch "$repo" && ( git-rev-parse FETCH_HEAD > .git/HEAD )
|
||||
Reference in New Issue
Block a user