Skip to content

Commit 5aa1c4a

Browse files
committed
feat: add git-clone-template command
1 parent d8650a4 commit 5aa1c4a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

bin/git-clone-template

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#!/bin/sh
2+
set -eo pipefail
3+
4+
git clone $@
5+
cd $2
6+
git reset --soft $(git commit-tree HEAD^{tree} -m "Initial commit")
7+
git remote remove origin

0 commit comments

Comments
 (0)