├── .gitignore ├── Comandos Git.txt ├── ManualGitCUC.docx ├── ManualGitCUC.pdf ├── commits.txt ├── index.html └── url_manual.txt /.gitignore: -------------------------------------------------------------------------------- 1 | *.DS_Store 2 | .AppleDouble 3 | .LSOverride 4 | 5 | # Icon must end with two \r 6 | Icon 7 | 8 | 9 | # Thumbnails 10 | ._* 11 | 12 | # Files that might appear in the root of a volume 13 | .DocumentRevisions-V100 14 | .fseventsd 15 | .Spotlight-V100 16 | .TemporaryItems 17 | .Trashes 18 | .VolumeIcon.icns 19 | .com.apple.timemachine.donotpresent 20 | 21 | # Directories potentially created on remote AFP share 22 | .AppleDB 23 | .AppleDesktop 24 | Network Trash Folder 25 | Temporary Items 26 | .apdisk 27 | -------------------------------------------------------------------------------- /Comandos Git.txt: -------------------------------------------------------------------------------- 1 | COMANDOS GIT 2 | 3 | git config --global user.name “Nombre” 4 | git config --global user.email “Email” 5 | git config --global color.ui true 6 | git config --global --list 7 | 8 | git init 9 | git status 10 | git add “file” 11 | git add -A (agregar todos) 12 | git commit -m “comentario” 13 | git log (lista de commits) 14 | git checkout "codigo del commit" (viajamos en el tiempo en los comits) 15 | git checkout master (volver al último commit de la rama) 16 | git reset --soft "codigo del commit" (no toca el código) 17 | git reset --mixed "codigo del commit" 18 | git reset --hard "codigo del commit" (borra el código) 19 | git log > commits.txt 20 | git help "comando" 21 | git branch 22 | git branch "rama" 23 | git checkout "rama" 24 | git merge "rama" 25 | git branch -D 26 | git checkout -b "rama" (mover y crear rama al mismo tiempo) 27 | git clone "url github" 28 | git remote add origin "url repositorio github" 29 | git remote -v (ver si está conectado con otro repositorio) 30 | git remote remove origin (quitar lo anterior) 31 | git push origin master 32 | 33 | Markdown 34 | git commit --amend -m "mensaje" 35 | git push origin master -f (subir a la fuerza) 36 | git tag v1.0 (tag ligera) 37 | git tag -a v1.0 -m "mensaje" (tag anotadas) 38 | git tag -a v1.0 -m "mensaje" "sha del commit"(tag anotadas) 39 | git push origin "tag" 40 | git push origin --tags (sube todos los tags) 41 | git branch -a (ramas ocultas) 42 | git fetch origin 43 | git merge "origin/master" 44 | git branch gh-pages 45 | ssh-keygen 46 | ls -rf (listar archivos ocultos) 47 | cat id_rsa.pub 48 | touch .gitignore 49 | digitalOcean (hosting con soporte ssh) 50 | ssh root@domain or root@ip 51 | gost for blogs 52 | git pull origin : git fech + git merge 53 | touch post-commit 54 | nano post-commit 55 | #!/bin/sh 56 | git push origin Develop 57 | ssh root@domain 'bash -s' < deployment.sh 58 | chmod +x post-commit. 59 | -------------------------------------------------------------------------------- /ManualGitCUC.docx: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertMoralesO/Curso-git/8ec3c8f623e8adcefe277293b0ee002377e9096e/ManualGitCUC.docx -------------------------------------------------------------------------------- /ManualGitCUC.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RobertMoralesO/Curso-git/8ec3c8f623e8adcefe277293b0ee002377e9096e/ManualGitCUC.pdf -------------------------------------------------------------------------------- /commits.txt: -------------------------------------------------------------------------------- 1 | commit b8997ff8a6e05f18c9990101736215a366e3146c 2 | Author: Roberto Morales 3 | Date: Fri Jul 29 11:20:17 2016 -0500 4 | 5 | Creado comandos Git.txt, eliminado el archivo .rtf 6 | 7 | commit a317ffb28cc054db0281494e750f541ae5e611e8 8 | Author: Roberto Morales 9 | Date: Fri Jul 29 11:09:37 2016 -0500 10 | 11 | Comando checkout agregado 12 | 13 | commit ea20ef160c6a483b1fc20767efa72f477e569de4 14 | Author: Roberto Morales 15 | Date: Fri Jul 29 11:04:37 2016 -0500 16 | 17 | Nuevos comandos git 18 | 19 | commit 30fcad2cac02659750e53f16b62344eb1baeb0d3 20 | Author: Roberto Morales 21 | Date: Fri Jul 29 11:02:02 2016 -0500 22 | 23 | Iniciamos 24 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | Hola Mundo 3 | 4 | -------------------------------------------------------------------------------- /url_manual.txt: -------------------------------------------------------------------------------- 1 | https://drive.google.com/file/d/0B8vhW_eAeS7wTnZJR3RrSEg5dG8/view?usp=sharing --------------------------------------------------------------------------------