Last active
May 16, 2022 15:01
-
-
Save corentinbettiol/273246409bbb874423cf817ab26458af to your computer and use it in GitHub Desktop.
This tiny script will init a new git repo in a folder, and then will "clone" this repo in another folder, allowing us to test things with git-related commands in a temporary folder.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir testrepo && cd testrepo # create folder | |
mkdir git && cd git && git init --bare # create new git repo in testrepo/git folder | |
cd .. && git clone git test # will clone git repo from testrepo/git folder to testrepo/test folder | |
cd test |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment