1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-01-24 05:36:19 +02:00

31 lines
526 B
Bash
Raw Normal View History

2022-01-28 21:56:01 +11:00
#!/bin/sh
set -e
cd $1
export GIT_COMMITTER_DATE="Mon 20 Aug 2018 20:19:19 BST"
export GIT_AUTHOR_DATE="Mon 20 Aug 2018 20:19:19 BST"
git init
git config user.email "CI@example.com"
git config user.name "CI"
echo test1 > myfile1
git add .
git commit -am "myfile1"
echo test2 > myfile2
git add .
git commit -am "myfile2"
echo test2 > myfile3
git add .
git commit -am "myfile3"
cd ..
2022-03-27 11:47:07 +11:00
git clone --bare ./repo other_repo
cd repo
2022-01-28 21:56:01 +11:00
git -c protocol.file.allow=always submodule add ../other_repo
2022-01-28 21:56:01 +11:00
git commit -am "add submodule"