Created
April 25, 2018 04:11
-
-
Save WeiChiaChang/4422fa282b9fe1f83285f93f99c366fe to your computer and use it in GitHub Desktop.
Create a new repo based on another remote boilerplate repo.
This file contains hidden or 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
# Cloning the boilerplate remote repo | |
git clone -o [boilerplate name] [boilerplate remote repo] [new-project repo folder name] | |
# Enter the cloned repo folder | |
cd [new-project repo folder name] | |
# Clean the README | |
rm README.md && touch README.md | |
# If you have LICENSE, you can clean it too. | |
rm LICENSE | |
touch LICENSE | |
# Remove all git info from the boilerplate | |
rm -rf .git | |
# Now you do whatever you want/need to do before your first commit. | |
# Now is the time to check if your boilerplate project needs a setup. | |
# Initiate the new git repo | |
git init | |
git add -A | |
git commit -m "first commit" | |
git remote add origin [new-project remote repo] | |
git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment