toscosys / github101

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Git 101 +

Primer tiempo

Configuramos nuestra instancia de GIT

$ git config --global user.name "Roberto Pettinato"
$ git config --global user.email robertito@gmail.com
$ git config --list

Creamos nuestas firmas :)

$ ssh-keygen -t ed25519 -C "robertito@gmail.com"
$ eval "$(ssh-agent -s)"
$ ssh-add ~/.ssh/id_ed25519
$ gpg --full-generate-key
$ gpg --list-secret-keys --keyid-format=long
/Users/hubot/.gnupg/secring.gpg
------------------------------------
sec   4096R/3AA5C34371567BD2 2016-03-10 [expires: 2017-03-10]
uid                          Hubot <hubot@example.com>
ssb   4096R/4BB6D45482678BE3 2016-03-10
$ gpg --armor --export 3AA5C34371567BD2

Instalamos GIT

Creamos un Repo

$ mkdir -p ~/Repos/git101
$ cd ~/Repos/git101
$ git init

Creamos contenido

$ $editor README.md
# Mi primer Readme en Git

Añadimos el codigo al repo y commiteamos

$ git status
$ git add README.md
$ git status
$ git commit -m 'Primer Commit!'

Verificamos :)

$ git status

About