borradores

.. title: git .. slug: git .. date: 2023-10-29 14:07:04 UTC-03:00 .. tags: cli git .. category: cli .. link: .. description: .. type: text

Clonar un repositorio

git clone url_repositorio

Crear una nueva branch

git switch --create nueva_brach

Cambiar de branch

git switch otra_branch

Actualizar repositorio local

git fetch --all --prune

Mergear una branch

git merge repo/branch

Actualizar branch actual con último master|main

git fetch --all --prune; git merge origin/master

Crear otro árbol de trabajo worktree

git worktree add -b nueva_branch commit ../path

Listar worktrees

git worktree list

Materiales extras

Julia Evans How Git Works! Popular git config options

Nina Zakharenko Advanced Git In-Depth

Mark Dominus Things I wish everyone knew about Git

John Wiegley Git from the Bottom Up