Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save pabloaugusto/38ae0a33d2f80160b17167ed1d5d316a to your computer and use it in GitHub Desktop.

Select an option

Save pabloaugusto/38ae0a33d2f80160b17167ed1d5d316a to your computer and use it in GitHub Desktop.
reset github repository (delete all previous commits)
cd YOUR_PROJECT_DIR
rm -r .git
git init
git add .
git commit -m '🎉 feat: initial commit'
git remote add origin [email protected]:YOUR_USER/YOUR_REPO.git
git push --force --set-upstream origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment