Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| linux:command-collection:git [2023/07/30 12:11] – ↷ Links adapted because of a move operation Zyzonix | linux:command-collection:git [2025/06/01 18:35] (current) – [Pushing changes to GitHub] Zyzonix | ||
|---|---|---|---|
| Line 30: | Line 30: | ||
| Before starting to edit, sync external changes*****: | Before starting to edit, sync external changes*****: | ||
| + | <code bash>git fetch < | ||
| <code bash>git pull origin < | <code bash>git pull origin < | ||
| Line 39: | 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 ===== | ||