option
Cuestiones
ayuda
daypo
buscar.php

Git

COMENTARIOS ESTADÍSTICAS RÉCORDS
REALIZAR TEST
Título del Test:
Git

Descripción:
Comandos GIT

Fecha de Creación: 2022/08/16

Categoría: Otros

Número Preguntas: 38

Valoración:(2)
COMPARTE EL TEST
Nuevo ComentarioNuevo Comentario
Comentarios
NO HAY REGISTROS
Temario:

Crear un reposi­torio. git init. git add. git diff. git status.

Ver la situación actual de los archivos. git diff. git pull origin master. git status. git add.

Se usa para agregar archivos al área de preparación (área de espera "stage"). git remote -v. git diff. git pull origin branch­_name. git add file_n­ame.ext.

Añadir todos los archivos que contiene la carpeta. git status. git remote -v. git add . git log.

Borrar el caché de un archivo. git remote -v. git log --oneline. git reset. git rm --cached file_n­ame.ext.

Listar los reposi­torios remotos a los que se está conectado junto con sus urls. git clone reposi­tor­y_url. git pull origin master. git remote -v. git status.

Cambiar la url del reposi­torio remoto al que se está conectado. git remote set-url origin new_re­pos­ito­ry_url. git pull origin branch­_name. git remote add origin reposi­tor­y_url.git. git remote -v.

Actualizar el reposi­torio local para que tenga los últimos cambios del reposi­torio remoto. git pull origin master. git push -u origin master. git remote add origin reposi­tor­y_url.git. git status.

Subir los últimos cambios del reposi­torio local al reposi­torio remoto. git remote -v. git clone reposi­tor­y_url. git push origin master. git remote add origin reposi­tor­y_url.git.

Se usa para copiar un repositorio local. git clone /path/to/repository. git pull origin master. git rm --cached file_n­ame.ext. git config --global user.name "­my_­use­rna­me".

Configurar el nombre de usuario para todo el sistema. git config user.name "­my_­use­rna­me". git config --global user.email "­my_­ema­il". git config --global user.name "­my_­use­rna­me". git config user.email "­my_­ema­il".

Configurar el nombre de usuario solo para el reposi­torio actual. git config user.name "­my_­use­rna­me". git config --global user.name "­my_­use­rna­me". git config --global user.email "­my_­ema­il". git config user.email "­my_­ema­il".

Configurar el email para todo el sistema. git config --global user.name "­my_­use­rna­me". git config user.name "­my_­use­rna­me". git config user.email "­my_­ema­il". git config --global user.email "­my_­ema­il".

Configurar el email solo para el reposi­torio actual. git config --global user.email "­my_­ema­il". git config user.email "­my_­ema­il". git config user.name "­my_­use­rna­me". git config --global user.name "­my_­use­rna­me".

Eliminar todas las config­ura­ciones globales realizadas. git config --global --unse­t-all. git config user.name "­my_­use­rna­me". git commit -m "Commit message". git revert commit_ID.

Realizar el commit de los archivos que están en staging area. git log --follow file_name. git revert commit_ID. git commit -m "Commit message". git mv origin­al_­fil­e_name new_fi­le_name.

Revertir algunas confirmaciones existentes. git revert. git commit -m "Commit message". git log. git reset.

Restablece el HEAD actual al estado especificado. git commit -m "Commit message". git log. git reset. git config user.email "­my_­ema­il".

Mostrar registros de confirmación. git log. git commit -m "Commit message". git revert commit_ID. git history.

mueve o cambia el nombre de un archivo, un directorio o un enlace simbólico. git mv. git rename. git copy. git new.

Se usa para saber con que rama estamos trabajando. git branch new_b­­ran­­ch­_­nam­e. git checkout master. git branch. git branch -d deleti­ng_­bra­nch­_name.

Para cambiar de una rama a otra. git checkout master. git checkout -b new_b­­ran­­ch­_­nam­e. git branch -D deleti­ng_­bra­nch­_name. git checkout branc­­h_n­ame.

Crear un nueva rama y "­cam­bia­rse­" a ella. git checkout -b new_b­­ran­­ch­_­nam­e. git checkout branc­­h_n­ame. git checkout master. git branch -d deleti­ng_­bra­nch­_name.

cambia de rama o restaura archivos de la rama master. git branch. git merge mergin­g_b­ran­ch_name. git checkout master. git branch -d deleti­ng_­bra­nch­_name.

Unir una rama con la rama activa actual­mente. git branch new_b­­ran­­ch­_­nam­e. git branch. git branch -D deleti­ng_­bra­nch­_name. git merge <branch-name>.

Borrar una rama. git branch. git branch -d deleti­ng_­bra­nch­_name. git checkout -b new_b­­ran­­ch­_­nam­e. git branch -D deleti­ng_­bra­nch­_name.

Forzar el borrado de una rama (force­-de­lete). git branch -D deleti­ng_­bra­nch­_name. git branch. git branch new_b­­ran­­ch­_­nam­e. git merge mergin­g_b­ran­ch_name.

Realiza una comprobación de integridad del sistema de archivos git e identifica cualquier objeto corrupto. git fsck. git ls-tree HEAD. git show.

Sirve para resetear el index y el directorio de trabajo al ultimo estado de confirmación. git reset. git show. git stash.

Limpiará archivos innecesarios y optimizará el repositorio local. git gc. gitk. git prune.

Se usa para ver los conflictos que hay entre ramas antes de fusionarlas. git conflict. git diff <source-branch> <target-branch>. git merge <branch-name>.

Permite crear, ver y eliminar conexiones a otros repositorios. git connect. git remote. git checkout <branch-name>.

Descarga objetos y referencias de otro repositorio. git rm filename.txt. git fetch origin. git stash.

Mostrar información sobre cualquier objeto git. git ls-tree HEAD. git show. git fetch origin.

Se usa para aplicar ciertos cambios de una rama en otra. git rebase master. git gc. git grep "www.hostinger.com".

Elimina los objetos que no tengan ningún apuntador entrante. git prune. git rebase master. git instaweb -http=webrick.

Guardará momentáneamente los cambios que no están listos para ser confirmados. git stash. git fetch origin. git ls-tree HEAD.

limpiará archivos innecesarios y optimizará el repositorio local. git fsck. git gc. git prune. gitk.

Denunciar Test