Skip to content

Commit 8489c9a

Browse files
committed
Basic functionality
1 parent 99db3f7 commit 8489c9a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

git-get

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
# We will blithely assume that the last argument is the repository
4+
dir=${!#}
5+
6+
dir=$(echo $dir | sed -e 's/^.*:\/\///')
7+
dir=$(echo $dir | sed -e 's/^.*@//')
8+
dir="~/code/$dir"
9+
10+
git clone $@ $dir

0 commit comments

Comments
 (0)