Skip to content

Instantly share code, notes, and snippets.

View Plaenkler's full-sized avatar
🌍
working on tour

Simon Lukas Plaenkler

🌍
working on tour
  • 2F-IT GmbH
  • Bielefeld Germany
  • 16:14 (UTC +02:00)
  • LinkedIn in/plaenkler
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