Skip to content

Instantly share code, notes, and snippets.

@shawnsandy
Last active February 10, 2017 17:08
Show Gist options
  • Save shawnsandy/234ca12b263b83642da6f3b5635a4fd8 to your computer and use it in GitHub Desktop.
Save shawnsandy/234ca12b263b83642da6f3b5635a4fd8 to your computer and use it in GitHub Desktop.
Git commands

Clone and start a fresh repo

Remove git and init

rm -rf .git && git init 

Add all files

git add .

First Commit

git commit -m  "Fresh commit"

Add new repo

git remote add origin https://github.com/shawnsandy/new-repo-name

Push to github

git push -u origin master

Setup gitflow

git flow init

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment