Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save WeiChiaChang/4422fa282b9fe1f83285f93f99c366fe to your computer and use it in GitHub Desktop.
Save WeiChiaChang/4422fa282b9fe1f83285f93f99c366fe to your computer and use it in GitHub Desktop.
Create a new repo based on another remote boilerplate repo.
# 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