This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| linux:git [2026/04/07 16:47] – [Commands] tmade | linux:git [2026/07/16 13:09] (current) – [Commands] tmade | ||
|---|---|---|---|
| Line 32: | Line 32: | ||
| git reset --hard HEAD~2 | git reset --hard HEAD~2 | ||
| git checkout -b branch-name | git checkout -b branch-name | ||
| + | git push origin --delete < | ||
| + | git branch -d < | ||
| tag = read only branch nie wieder veränderbar/ | tag = read only branch nie wieder veränderbar/ | ||
| git tag --list | git tag --list | ||
| git branch --list | git branch --list | ||
| git branch --all #show all branches and remote | git branch --all #show all branches and remote | ||
| + | git branch -D branch | ||
| git fetch --prune | git fetch --prune | ||
| git fetch #update remote branches | git fetch #update remote branches | ||
| git checkout < | git checkout < | ||
| git checkout -b < | git checkout -b < | ||
| - | git branch -D branch | ||
| git log -- path/ | git log -- path/ | ||
| git reset HEAD < | git reset HEAD < | ||
| Line 51: | Line 53: | ||
| | | ||
| + | Rebase: | ||
| + | |||
| + | git commit | ||
| + | git rebase -i HEAD~4 | ||
| + | git rebase -i ffa3fb36cf62ea41824b781b681c7e753d2406ee~ (commit ID) #back inclusive last commit through " | ||
| + | git rebase -i ffa3fb36cf62ea41824b781b681c7e753d2406ee (commit ID) #back exclusive last commit | ||
| + | git push -f | ||
| ====scripts==== | ====scripts==== | ||