tech:git:dotfiles

Diferències

Ací es mostren les diferències entre la revisió seleccionada i la versió actual de la pàgina.

Enllaç a la visualització de la comparació

Ambdós costats versió prèvia Revisió prèvia
Següent revisió
Revisió prèvia
tech:git:dotfiles [30/06/2025 01:33] – [.git*] matetech:git:dotfiles [12/12/2025 04:45] (actual) – [.gitignore] mate
Línia 2: Línia 2:
 {{tag>git}} {{tag>git}}
  
-  * [[alias|]]+== .gitconfig 
 +  ''~/.gitconfig'': 
 +<code properties> 
 +[alias] 
 +        ck = checkout 
 +        s = status 
 +        l = log --oneline --max-count=10 
 +        ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat 
 +        lg = log --oneline --decorate --graph 
 +        ls = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate 
 +        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> 
 +<code properties> 
 +# https://gist.github.com/johnpolacek/69604a1f6861129ef088 
 +[alias] 
 + co = checkout 
 + cob = checkout -b 
 + coo = !git fetch && git checkout 
 + br = branch 
 + brd = branch -d 
 + brD = branch -D 
 + 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:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate 
 + ll = log --pretty=format:"%C(yellow)%h%Cred%d\\ %Creset%s%Cblue\\ [%cn]" --decorate --numstat 
 + f = "!git ls-files | grep -i" 
 + gr = grep -Ii 
 + la = "!git config -l | grep alias | cut -c 7-" 
 +</code>
 == .gitignore == .gitignore
 <code> <code>
Línia 24: Línia 80:
 aunque no esté afectada por ninguna regla: <code bash>git check-ignore -v --no-index --non-matching <ruta/al/fichero></code> aunque no esté afectada por ninguna regla: <code bash>git check-ignore -v --no-index --non-matching <ruta/al/fichero></code>
  
 +Eliminar archivos que se estaban rastreando y que se han añadido posteriormente a .gitignore: [[tech:git:dotfiles:removefromindex]]
 == .gitkeep == .gitkeep
 Fichero vacío para indicar que ese directorio se ha de mantener, aunque no contenga más archivos. Fichero vacío para indicar que ese directorio se ha de mantener, aunque no contenga más archivos.
  • tech/git/dotfiles.1751272390.txt.gz
  • Darrera modificació: 30/06/2025 01:33
  • per mate