Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Uso básico de git

Sponsored · Your Podcast. Everywhere. Effortlessly. Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
Avatar for xihh87 xihh87
October 17, 2016
30

Uso básico de git

Describe por qué quieres usar git, cómo funciona y recomendaciones que hacen más fácil usarlo.

Avatar for xihh87

xihh87

October 17, 2016
Tweet

Transcript

  1. ¿Por qué necesitamos un control de versiones? Figure 2: Es

    bien sabido que los gatos son malvados. 4
  2. Adquirir fama y gloria Si no hemos usado git nunca:

    git config --global user.name ’Joshua Haase’ git config --global user.email ’[email protected]’ git config --global merge.tool meld 13
  3. Usar git Generar un repo desde cero: git init Así

    generamos “el estudio fotográfico” del proyecto. 14
  4. Usar git Comparar el álbum con otro y copiarle las

    fotos: git pull [nombre] (rama) 21
  5. Vivir sin preocupaciones Generar un par de llaves: ssh-keygen \

    -t rsa \ -b 4096 \ -C ”‘whoami‘@‘hostname‘” \ -f ~/.ssh/github Y subirlas a github.com. 23
  6. Vivir sin preocupaciones Agregar a ~/.bashrc: alias gs=”git status” alias

    gd=”git diff” alias gdc=”git diff --cached” alias gc=”git commit” alias gcm=”git commit -m” alias ga=”git add” alias gp=”git push” alias gb=”git branch” 24
  7. Saber más • Tutorial de atlassian https://www.atlassian.com/git/tutorials/ learn-git-with-bitbucket-cloud/create-the-repository • Listado

    de tutoriales http://sixrevisions.com/resources/ git-tutorials-beginners/ • Una propuesta de flujo de trabajo con ramas http: //nvie.com/posts/a-successful-git-branching-model/ 28