Cerca

Heus ací els resultats de la cerca.

GIT
65 Resultats, Darrera modificació:
it command tricks" icon="true">https://medium.freecodecamp.org/bash-shortcuts-to-enhance-your-git-workfl... config [--global] * repo : .git/config * <code bash>git config --list --show-origin</code> * ''git config [--global] --list'' : si omitimos el ámbit... tch (+ git checkout) + git merge * modo seguro:<code bash>git fetch origin git log --oneline main..ori
submodulos
18 Resultats, Darrera modificació:
= submodulos == 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 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] == 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
replicación o duplicación de repositorios
6 Resultats, Darrera modificació:
= replicación o duplicación de repositorios <code bash; replicar un repositorio (by mate)> # partiendo d... 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 alias
4 Resultats, Darrera modificació:
= git alias * ''~/.gitconfig'': <code properties> [alias] ck = checkout s = status ... = add --interactive ss = status --short </code> <code properties> # https://gist.github.com/johnpolacek/69604a1f6861129ef088 [alias] co = checkout c... t f = "!git ls-files | grep -i" gr = grep -Ii la = "!git config -l | grep alias | cut -c 7-" </code>
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ó:
create thread: Resource temporarily unavailable <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>