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:33] – [SQUASH] v1ctor | linux:git [2026/02/13 18:52] (current) – [SQUASH] v1ctor | ||
|---|---|---|---|
| Line 8: | Line 8: | ||
| // 3. Move your working directory to that branch | // 3. Move your working directory to that branch | ||
| </ | </ | ||
| + | --------------- | ||
| ==== DELETE REMOTE BRANCH ==== | ==== DELETE REMOTE BRANCH ==== | ||
| Line 21: | Line 21: | ||
| git push origin --delete < | git push origin --delete < | ||
| </ | </ | ||
| + | --------------- | ||
| ==== ACCIDENTALLY COMITED ON MASTER ==== | ==== ACCIDENTALLY COMITED ON MASTER ==== | ||
| Line 44: | Line 45: | ||
| git log --oneline master | git log --oneline master | ||
| </ | </ | ||
| + | --------------- | ||
| ==== SQUASH ==== | ==== SQUASH ==== | ||
| Line 77: | 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.1767987204.txt.gz · Last modified: by v1ctor
