linux:git
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:git [2026/01/09 19:34] – [CHECK OUT REMOTE BRANCH] v1ctor | linux:git [2026/02/13 18:52] (current) – [SQUASH] v1ctor | ||
|---|---|---|---|
| Line 45: | Line 45: | ||
| git log --oneline master | git log --oneline master | ||
| </ | </ | ||
| + | --------------- | ||
| ==== SQUASH ==== | ==== SQUASH ==== | ||
| Line 78: | Line 79: | ||
| git config pull.rebase true | git config pull.rebase true | ||
| git pull | git pull | ||
| + | </ | ||
| + | |||
| + | ==== CHANGE COMMIT MESSAGE ==== | ||
| + | |||
| + | If the commit has been already pushed to the upstream, and it's the latest commit: | ||
| + | |||
| + | <code bash> | ||
| + | git commit --amend # edit the commit msg | ||
| + | git push --force | ||
| </ | </ | ||
linux/git.1767987243.txt.gz · Last modified: by v1ctor
