Diferències
Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.
| Ambdós costats versió prèvia Revisió prèvia Següent revisió | Revisió prèvia | ||
| tech:git:alias [30/06/2025 01:32] – mate | tech:git:alias [03/08/2025 04:19] (actual) – creat mate | ||
|---|---|---|---|
| Línia 1: | Línia 1: | ||
| = git alias | = git alias | ||
| - | {{tag>git}} | + | * [[https://git-scm.com/ |
| - | * '' | + | == alias |
| - | < | + | |
| - | [alias] | + | /via: [[https://git-scm.com/book/en/v2/Git-Basics-Git-Aliases]] |
| - | ck = checkout | + | +info: [[https:// |
| - | s = status | + | |
| - | l = log --oneline --max-count=10 | + | |
| - | ll = log --pretty=format:" | + | |
| - | lg = log --oneline --decorate --graph | + | |
| - | ls = log --pretty=format:" | + | |
| - | alias = ! git config --get-regexp ^alias\\. | sed -e s/^alias\\.// -e s/\\ /\\ =\\ / | + | |
| - | a = add | + | |
| - | b = branch | + | |
| - | c = commit | + | |
| - | bv = branch -avv | + | |
| - | lv = log --walk-reflogs --max-count=10 | + | |
| - | ai = add --interactive | + | |
| - | ss = status --short | + | |
| - | </ | + | |
| - | <code properties> | + | |
| - | # https://gist.github.com/johnpolacek/69604a1f6861129ef088 | + | |
| - | [alias] | + | |
| - | co = checkout | + | |
| - | cob = checkout | + | |
| - | coo = !git fetch && git checkout | + | |
| - | br = branch | + | |
| - | brd = branch | + | |
| - | brD = branch | + | |
| - | merged = branch --merged | + | |
| - | st = status | + | |
| - | aa = add -A . | + | |
| - | cm = commit -m | + | |
| - | aacm = !git add -A . && git commit -m | + | |
| - | cp = cherry-pick | + | |
| - | amend = commit --amend -m | + | |
| - | dev = !git checkout dev && git pull origin dev | + | |
| - | staging = !git checkout staging && git pull origin staging | + | |
| - | master = !git checkout master && git pull origin | + | |
| - | po = push origin | + | |
| - | pod = push origin dev | + | |
| - | pos = push origin staging | + | |
| - | pom = push origin master | + | |
| - | poh = push origin HEAD | + | |
| - | pogm = !git push origin gh-pages && git checkout master && git pull origin master && git rebase gh-pages && git push origin master && git checkout gh-pages | + | |
| - | pomg = !git push origin master && git checkout gh-pages && git pull origin gh-pages && git rebase master && git push origin gh-pages && git checkout master | + | |
| - | plo = pull origin | + | |
| - | plod = pull origin dev | + | |
| - | plos = pull origin staging | + | |
| - | plom = pull origin master | + | |
| - | ploh = pull origin HEAD | + | |
| - | unstage = reset --soft HEAD^ | + | |
| - | ls = log --pretty=format:" | + | |
| - | ll = log --pretty=format:" | + | |
| - | f = "!git ls-files | grep -i" | + | |
| - | gr = grep -Ii | + | |
| - | la = "!git config -l | grep alias | cut -c 7-" | + | |
| - | </ | + | |