Skip to content

Instantly share code, notes, and snippets.

View Plaenkler's full-sized avatar
🏠
Working from home

Simon Lukas Plaenkler

🏠
Working from home
View GitHub Profile
@Plaenkler
Plaenkler / Reset-Git-Repository.md
Last active December 28, 2023 11:48 — forked from heiswayi/repo-reset.md
Git - reset/delete commit history of your repository

Challenge

Delete all commits and keep the code in its current state.

Solution

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