You've already forked comandos-git
Compare commits
5 Commits
9536b38496
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| cc85e47880 | |||
| 1ddf30f5be | |||
|
|
3c46dd5ac5 | ||
|
|
2cadb67c4a | ||
| aabfdbda39 |
34
.gitconfig
34
.gitconfig
@@ -1,34 +0,0 @@
|
|||||||
[user]
|
|
||||||
email = noreply@vergaracarmona.es
|
|
||||||
name = manuel vergara
|
|
||||||
[github]
|
|
||||||
user = manudocker
|
|
||||||
[core]
|
|
||||||
editor = nano
|
|
||||||
[pull]
|
|
||||||
rebase = false
|
|
||||||
[init]
|
|
||||||
defaultBranch = main
|
|
||||||
[alias]
|
|
||||||
cg = config --global
|
|
||||||
cl = config --list
|
|
||||||
all = add .
|
|
||||||
st = status
|
|
||||||
unstage = reset HEAD --
|
|
||||||
ci = commit -m
|
|
||||||
cia = commit -am
|
|
||||||
amend = commit --amend
|
|
||||||
ps = push
|
|
||||||
psu = ps --set-upstream origin
|
|
||||||
pl = pull
|
|
||||||
pf = ! git pull && git fetch
|
|
||||||
lg = log --graph --pretty=format:"%C(yellow)%h%Cred%d%Creset - %C(cyan)%an%Creset: '%s' %Cgreen(%cr)%Creset" --abbrev-commit
|
|
||||||
nm = lg --no-merges
|
|
||||||
df = lg -p
|
|
||||||
co = checkout
|
|
||||||
br = branch
|
|
||||||
main = branch -M main
|
|
||||||
back = co -- .
|
|
||||||
[credential "https://github.com"]
|
|
||||||
helper =
|
|
||||||
helper = !/usr/bin/gh auth git-credential
|
|
||||||
51
README.md
51
README.md
@@ -1,5 +1,27 @@
|
|||||||
# Recopilación de comandos GIT
|
# Recopilación de comandos GIT
|
||||||
|
|
||||||
|
**Índice**
|
||||||
|
|
||||||
|
- [Recopilación de comandos GIT](#recopilación-de-comandos-git)
|
||||||
|
- [Configuración Básica](#configuración-básica)
|
||||||
|
- [Listar Git Config](#listar-git-config)
|
||||||
|
- [Iniciando repositorio](#iniciando-repositorio)
|
||||||
|
- [GIT CLONE](#git-clone)
|
||||||
|
- [GIT ADD](#git-add)
|
||||||
|
- [GIT COMMIT](#git-commit)
|
||||||
|
- [GIT PUSH](#git-push)
|
||||||
|
- [GIT LOG](#git-log)
|
||||||
|
- [GIT DIFF](#git-diff)
|
||||||
|
- [GIT HEAD](#git-head)
|
||||||
|
- [GIT REMOTE](#git-remote)
|
||||||
|
- [GIT BRANCH](#git-branch)
|
||||||
|
- [GIT TAG](#git-tag)
|
||||||
|
- [GIT REBASE](#git-rebase)
|
||||||
|
- [OTROS COMANDOS](#otros-comandos)
|
||||||
|
- [Fork](#fork)
|
||||||
|
- [Info de Git con más detalles](#info-de-git-con-más-detalles)
|
||||||
|
- [Invítame a un café](#invítame-a-un-café)
|
||||||
|
|
||||||
## Configuración Básica
|
## Configuración Básica
|
||||||
|
|
||||||
Configurar Nombre que salen en los commits
|
Configurar Nombre que salen en los commits
|
||||||
@@ -17,6 +39,21 @@ Marco de colores para los comando
|
|||||||
|
|
||||||
*Ejemplo de configuración del archivo [.gitconfig](.gitconfig)*
|
*Ejemplo de configuración del archivo [.gitconfig](.gitconfig)*
|
||||||
|
|
||||||
|
## Listar Git Config
|
||||||
|
|
||||||
|
Listar toda la configuración Git
|
||||||
|
|
||||||
|
git config --list
|
||||||
|
|
||||||
|
Muestra la ubicación de los archivos de configuración Git donde se definen estos ajustes
|
||||||
|
|
||||||
|
git config --list --show-origin
|
||||||
|
|
||||||
|
Separar las listas de configuración global, local y system
|
||||||
|
|
||||||
|
git config --list --local
|
||||||
|
git config --list --global
|
||||||
|
git config --list --system
|
||||||
|
|
||||||
## Iniciando repositorio
|
## Iniciando repositorio
|
||||||
|
|
||||||
@@ -281,8 +318,20 @@ Merge con master de un fork
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Info de Git con más detalles
|
## Info de Git con más detalles
|
||||||
Con explicaciones, gráficos, emoticonos... no tan seco como este README: [https://vergaracarmona.es/comandos-de-git/](https://vergaracarmona.es/comandos-de-git/)
|
Con explicaciones, gráficos, emoticonos... no tan seco como este README:
|
||||||
|
- [Apuntes del Curso de Git](https://vergaracarmona.es/wp-content/uploads/2022/10/Curso-git_vergaracarmona.es_.pdf) de [Juan Carlos Rubio](https://www.linkedin.com/in/juan-carlos-rubio-pineda-es) en [OpenWebinars](https://openwebinars.net/cursos/git/) por el que me dieron esta [certificación](https://vergaracarmona.es/wp-content/uploads/2022/05/OpenWebinars-Git.pdf).
|
||||||
|
- En mis [apuntes](https://vergaracarmona.es/apuntes/).
|
||||||
|
- ["Instalar git en ubuntu"](https://vergaracarmona.es/instalar-git-en-ubuntu/)
|
||||||
|
- ["Comandos de git"](https://vergaracarmona.es/comandos-de-git/)
|
||||||
|
- ["Estrategias de fusión en git: Ship / Show / Ask"](https://vergaracarmona.es/estrategias-bifurcacion-git-ship-show-ask/)
|
||||||
|
- ["Resolver conflictos en Git. Merge, Squash, Rebase o Pull"](https://vergaracarmona.es/merge-squash-rebase-pull/)
|
||||||
|
- ["Borrar commits de git: reset, rebase y cherry-pick"](https://vergaracarmona.es/reset-rebase-cherry-pick/)
|
||||||
|
|
||||||
|
## Invítame a un café
|
||||||
|
<p>
|
||||||
|
<a href="https://www.buymeacoffee.com/manuelver"> <img align="left" src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" height="50" width="210" alt="https://www.buymeacoffee.com/manuelver" /></a>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<br><br><br>
|
||||||
|
|
||||||
[Manuel Vergara](https://vergaracarmona.es)
|
[Manuel Vergara](https://vergaracarmona.es)
|
||||||
Reference in New Issue
Block a user