Skip to content

Instantly share code, notes, and snippets.

@quilt9
Created February 9, 2018 19:42
Show Gist options
  • Save quilt9/2ecec31f13f8d5e132d4c1ed87a09fe8 to your computer and use it in GitHub Desktop.
Save quilt9/2ecec31f13f8d5e132d4c1ed87a09fe8 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