Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:command-collection:git [2024/03/03 00:05] – [Pushing changes to GitHub] Zyzonixlinux:command-collection:git [2025/06/01 18:35] (current) – [Pushing changes to GitHub] Zyzonix
Line 40: Line 40:
  
 *****Replace ''branch'' with the concerning branch, e.g. ''main''. *****Replace ''branch'' with the concerning branch, e.g. ''main''.
 +
 +Reset to previous commit:
 +<code bash>git reset --hard <commit></code>
 +To then push changes/reset:
 +<code bash>git push --force</code>
  
 ==== git merge and git rebase ===== ==== git merge and git rebase =====
  • linux/command-collection/git.1709420730.txt.gz
  • Last modified: 2024/03/03 00:05
  • by Zyzonix