GIT

Configurar Cuenta


Ir a https://github.com/ y crear cuenta

En windows, descargar desde https://windows.github.com/

desde la línea de comandos:


git config --global user.name "TU NOMBRE"

git config --global user.email "TU DIRECCIÓN DE EMAIL" 

cONFIGURAR ssh

Ver si ya existe una clave SSH

cd ~/.ssh
ls -al 

Generar la llave SSH

ssh-keygen -t rsa -C "tu_email@ejemplo.com" 

darle Enter a todo

Pegar el contenido de ~/.ssh/id_rsa.pub en https://github.com/settings/ssh

Probar que anda:

ssh -T git@github.com 

Clonar un repositorio

git clone url_del_repo 


Ver estado del repo

git status 

Sincronizar archivos

git add .

git add -u

git commit -m "descripción de los cambios"

git pull origin master

git push origin master 

Para Merge manual

usar una herramienta diff de 3 vías, como Meld

comando:

git mergetool 


GIT

By Guillermo Nuñez