Skip to content

Instantly share code, notes, and snippets.

View hacked6690's full-sized avatar

Hacked6690 hacked6690

  • Private
  • Phnom Penh, Cambodia
View GitHub Profile
@hacked6690
hacked6690 / README.md
Created September 29, 2018 04:08 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet
@hacked6690
hacked6690 / repo-reset.md
Created April 20, 2018 03:10 — forked from heiswayi/repo-reset.md
GitHub - Delete commits history with git commands

First Method

Deleting the .git folder may cause problems in our git repository. If we want to delete all of our commits history, but keep the code in its current state, try this:

# Check out to a temporary branch:
git checkout --orphan TEMP_BRANCH

# Add all the files:
git add -A