delete commit in git; delete commits in git; git delete commits; delete commits from branch git;

Опубликовано: 01 Сентябрь 2023
на канале: CoderDmitri
190
0

delete commit in git; delete commits in git; git delete commits; delete commits from branch git;

How do I delete commits in git; how to delete commits in git

---------------------------------------------------

stackoverflow: https://stackoverflow.com/questions/1...

core commands:
- see heads: git log

- exit from git terminal: q

- move 1 head DOWN: git reset --hard HEAD~1

- remove commits from REMOTE (this sets your current HEAD as origin on the Remote Branch and removes anything after it): git push origin HEAD --force

- move number of heads DOWN: git reset --hard HEAD~numberOfHeadsYouWantToMoveDown

- move HEAD to a specific Head ID: git reset --hard SHA_ID_Head_Id