Compare commits

...

2 Commits

2 changed files with 46 additions and 0 deletions

34
.gitconfig Normal file
View File

@ -0,0 +1,34 @@
[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

View File

@ -1,3 +1,5 @@
# Recopilación de comandos GIT
## Configuración Básica
Configurar Nombre que salen en los commits
@ -13,6 +15,9 @@ Marco de colores para los comando
git config --global color.ui true
```
*Ejemplo de configuración del archivo [.gitconfig](.gitconfig)*
## Iniciando repositorio
Iniciamos GIT en la carpeta donde esta el proyecto
@ -274,3 +279,10 @@ Merge con master de un fork
git fetch upstream
git merge upstream/master
```
## 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/)
[Manuel Vergara](https://vergaracarmona.es)