Skip to content

Instantly share code, notes, and snippets.

@1isten
Last active March 25, 2020 17:44
Show Gist options
  • Save 1isten/12b796f25169c262bc7cec476d19482f to your computer and use it in GitHub Desktop.
Save 1isten/12b796f25169c262bc7cec476d19482f to your computer and use it in GitHub Desktop.
git checkout --orphan TEMP_BRANCH && git add -A && git commit -am "Initial commit" && git branch -D master && git branch -m master && git push -f origin master && git branch --set-upstream-to=origin/master master && git pull
git rm -r --cached . && git add . && git commit -m "fixed untracked files" && git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment