Skip to main content

Adding ssh to Github:


How can I make an older commit HEAD (Current) in Git


git reset --hard <commit-SHA>

🔼 Replace <commit-SHA> with the th commit ID


git push origin HEAD:<name-of-remote-branch>