Git
![]() |
![]() |
![]() |
Título del Test:![]() Git Descripción: Comandos GIT |




Comentarios |
---|
NO HAY REGISTROS |
Crear un repositorio. 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_name.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_name.ext. Listar los repositorios remotos a los que se está conectado junto con sus urls. git clone repository_url. git pull origin master. git remote -v. git status. Cambiar la url del repositorio remoto al que se está conectado. git remote set-url origin new_repository_url. git pull origin branch_name. git remote add origin repository_url.git. git remote -v. Actualizar el repositorio local para que tenga los últimos cambios del repositorio remoto. git pull origin master. git push -u origin master. git remote add origin repository_url.git. git status. Subir los últimos cambios del repositorio local al repositorio remoto. git remote -v. git clone repository_url. git push origin master. git remote add origin repository_url.git. Se usa para copiar un repositorio local. git clone /path/to/repository. git pull origin master. git rm --cached file_name.ext. git config --global user.name "my_username". Configurar el nombre de usuario para todo el sistema. git config user.name "my_username". git config --global user.email "my_email". git config --global user.name "my_username". git config user.email "my_email". Configurar el nombre de usuario solo para el repositorio actual. git config user.name "my_username". git config --global user.name "my_username". git config --global user.email "my_email". git config user.email "my_email". Configurar el email para todo el sistema. git config --global user.name "my_username". git config user.name "my_username". git config user.email "my_email". git config --global user.email "my_email". Configurar el email solo para el repositorio actual. git config --global user.email "my_email". git config user.email "my_email". git config user.name "my_username". git config --global user.name "my_username". Eliminar todas las configuraciones globales realizadas. git config --global --unset-all. git config user.name "my_username". 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 original_file_name new_file_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_email". 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_branch_name. git checkout master. git branch. git branch -d deleting_branch_name. Para cambiar de una rama a otra. git checkout master. git checkout -b new_branch_name. git branch -D deleting_branch_name. git checkout branch_name. Crear un nueva rama y "cambiarse" a ella. git checkout -b new_branch_name. git checkout branch_name. git checkout master. git branch -d deleting_branch_name. cambia de rama o restaura archivos de la rama master. git branch. git merge merging_branch_name. git checkout master. git branch -d deleting_branch_name. Unir una rama con la rama activa actualmente. git branch new_branch_name. git branch. git branch -D deleting_branch_name. git merge <branch-name>. Borrar una rama. git branch. git branch -d deleting_branch_name. git checkout -b new_branch_name. git branch -D deleting_branch_name. Forzar el borrado de una rama (force-delete). git branch -D deleting_branch_name. git branch. git branch new_branch_name. git merge merging_branch_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. |