Cerca

Heus ací els resultats de la cerca.

git tips
62 Resultats, Darrera modificació:
tch (+ git checkout) + git merge * modo seguro:<code bash>git fetch origin git log --oneline main..ori... t main git log origin/main git merge origin/main</code> * [[https://www.atlassian.com/es/git/tutorial... com/es/git/tutorials/syncing/git-pull]] == ramas <code bash renombrado rama en local y remoto> git check... :<old_name> # elimina la rama vieja del remoto! </code> <code bash mover rama, trayendo solo los commit
git submodulos
18 Resultats, Darrera modificació:
ulos {{tag>git}} == clonar incluyendo submódulos <code bash; v2.13+>git clone --recurse-submodules -j8 <url-git></code> <code bash; v2.8-v2.12>git clone --recursive -j8 <url-git> # -j8 solo disponible a partir de la 2.8</code> <code bash; v2.8->git clone --recursive <url-git
.git*
17 Resultats, Darrera modificació:
{{tag>git}} == .gitconfig * ''~/.gitconfig'': <code properties> [alias] ck = checkout ... = add --interactive ss = status --short </code> <code properties> # https://gist.github.com/johnpolacek/69604a1f6861129ef088 [alias] co = checkout c... la = "!git config -l | grep alias | cut -c 7-" </code> == .gitignore <code> outgoing/* !outgoing/.gitke
git diff
14 Resultats, Darrera modificació:
r diferencias entre working area y último commit:<code bash> git diff @ # @ = HEAD </code> * mostrar ficheros cambiados respecto a un commit:<code bash> git show --stat --oneline <commit-id> git d... -tree --no-commit-id --name-only -r <commit-id> </code> * muestra diferencias entre 2 ramas (HEAD) (2
git repo server
14 Resultats, Darrera modificació:
-shell <username>'' * **/etc/ssh/sshd_config**:<code> Match User git ForceCommand /usr/bin/git AllowTCPForwarding no X11Forwarding no </code> * **gitlab-ce**:<code ; ~git/.ssh/authorized_keys> command="/opt/gitlab/embedded/service/gitlab-shel... t-forwarding,no-pty ssh-rsa AA...restofkeysnip! </code> * no **~/.bashrc**, **~/.profile** * [[htt
git diff[tool]
12 Resultats, Darrera modificació:
= git diff[tool] {{tag>git}} == básicos <code bash; mostrar diferencias entre working area y último commit> git diff @ # @ = HEAD </code> <code bash; mostrar ficheros cambiados respecto a un commit> git show --stat --oneline <commit-id> gi... -tree --no-commit-id --name-only -r <commit-id> </code> == configuración difftool <code bash> #git conf
git LFS
12 Resultats, Darrera modificació:
d/docs/use-git-lfs-with-bitbucket/]] == install <code bash>sudo apt install git-lfs</code> == setup (nuevos repos) * instalación cliente:<code bash>git lfs install --local # si no se especific... s repos de la sesión, con --local solo al actual</code> * configuración:<code bash>git lfs track # ver
git: migrar repositorio
8 Resultats, Darrera modificació:
el repositorio que queremos cambiar de proveedor<code bash>git clone...</code> - cambiar el origen del repositorio<code bash>git remote set-url origin <URL_REPO_DESTINO></code> - enviar todos los commits, ramas y tags:<code
git: replicación o duplicación de repositorios
6 Resultats, Darrera modificació:
ación o duplicación de repositorios {{tag>git}} <code bash; replicar un repositorio (by mate)> # partie... l origin $URL_REPO_NEW git push --mirror origin </code> /vía: [[https://stackoverflow.com/questions/395... ce-between-git-clone-mirror-and-git-clone-bare]] <code bash>git clone --mirror $URL ≡ git clone --bare $... L) && git remote add --mirror=fetch origin $URL)</code> <code bash; github doc> git clone --bare $URL_RE
Crear repositorio de solo lectura (para algunos)
6 Resultats, Darrera modificació:
ctura (para algunos) {{tag>git}} * Crear repo: <code bash>mkdir mi_repositorio.git cd mi_repositorio.git git init --bare</code> * asignar owners: <code bash>sudo chown -R git:mi_grupo_lectura mi_repositorio.git</code> * asignar permisos: <code bash>sudo chmod -R 7
git: fusion varios repos en 1 conservando historia
4 Resultats, Darrera modificació:
el remote del primer repo que queremos fusionar:<code bash>git remote add -f first_repo `link_to_first_... ge --allow-unrelated-histories first_repo/master</code> * ''-f'' hace que haga un fetch inmediatamen... rar en carpetas si necesario, corregir conflictos<code bash>git merge --continue</code> * repetimos para otros repositorios que queramos fusionar
GIT: unable to create thread: Resource temporarily unavailable @tech:git:error
4 Resultats, Darrera modificació:
d: Resource temporarily unavailable {{tag>git}} <code bash>git fsck git prune git repack git fsck </code> <code bash> git config --global pack.windowMemory "100m" git config --global pack.packSizeLimit "100m" git config --global pack.threads "1" </code>
git autopush shell script
2 Resultats, Darrera modificació:
rl> * certificado SSH? <- debería funcionar <code bash> #!/bin/bash cd <git_directory> [[ -z "$(g... lain)" ]] || { git add . git commit -m "$(date +%Y-%m-%d)" git push origin master } </code>
git config
2 Resultats, Darrera modificació:
config [--global] * repo : .git/config * <code bash>git config --list --show-origin</code> * ''git config [--global] --list'' : si omitimos el ámbit
GIT
1 Resultats, Darrera modificació:
it command tricks" icon="true">https://medium.freecodecamp.org/bash-shortcuts-to-enhance-your-git-workfl