Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
linux:command-collection:git [2024/03/03 00:05] – [Pushing changes to GitHub] Zyzonix | linux:command-collection:git [2025/06/01 18:35] (current) – [Pushing changes to GitHub] Zyzonix | ||
---|---|---|---|
Line 40: | Line 40: | ||
*****Replace '' | *****Replace '' | ||
+ | |||
+ | Reset to previous commit: | ||
+ | <code bash>git reset --hard < | ||
+ | To then push changes/ | ||
+ | <code bash>git push --force</ | ||
==== git merge and git rebase ===== | ==== git merge and git rebase ===== |