Skip to content

Instantly share code, notes, and snippets.

@GoodLuckJimmy
GoodLuckJimmy / repo-reset.md
Created October 11, 2018 13:49 — 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
@GoodLuckJimmy
GoodLuckJimmy / aws-study-resource.md
Created December 28, 2020 02:37 — forked from serithemage/aws-study-resource.md
AWS 학습 자료집

AWS 학습 링크집 시리즈