O que é?
Qual necessidade?
Alguns clicks ...
- Criar conta
- Apresentação da interface
- Criar repositórios
- Organizações
git clone
$ git clone https://github.com/lampiaosec/virada-hacker
Cloning into 'virada-hacker'...
remote: Counting objects: 216, done.
remote: Compressing objects: 100% (15/15), done.
remote: Total 216 (delta 3), reused 0 (delta 0), pack-reused 199
Receiving objects: 100% (216/216), 15.57 MiB | 411.00 KiB/s, done.
Resolving deltas: 100% (44/44), done.
Checking connectivity... done.
git remote
$ git remote add origin https://github.com/gjuniioor/testeando
git push
$ git push -u origin master
git pull
$ git pull
remote: Counting objects: 3, done.
remote: Compressing objects: 100% (2/2), done.
remote: Total 3 (delta 0), reused 0 (delta 0), pack-reused 0
Unpacking objects: 100% (3/3), done.
From https://github.com/gjuniioor/testeando
cdd55e2..7defde2 master -> origin/master
Updating cdd55e2..7defde2
Fast-forward
README.md | 3 +++
1 file changed, 3 insertions(+)
create mode 100644 README.md
O que são?
Pra que serve?
git branch (-a)
$ git branch novo_branch
git checkout (-b)
$ git checkout novo_branch
git push
$ git push origin novo_branch
Username for 'https://github.com': gjuniioor
Password for 'https://gjuniioor@github.com':
Counting objects: 3, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 332 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/gjuniioor/testeando
* [new branch] novo_branch -> novo_branch
git merge
$ git merge novo_branch
$ git commit -m "Closes #1"
[master 8eeca72] Closes #1
1 file changed, 1 deletion(-)
delete mode 100644 index.html
$ git push
Remover branchs
$ git branch -d novo_branch
Deleted branch novo_branch (was 4ed54fe).
$ git push origin :novo_branch
Username for 'https://github.com': gjuniioor
Password for 'https://gjuniioor@github.com':
To https://github.com/gjuniioor/testeando
- [deleted] novo_branch