Skip to content

Instantly share code, notes, and snippets.

View fabiocruzcoelho's full-sized avatar
:octocat:

Fabio Coelho fabiocruzcoelho

:octocat:
View GitHub Profile
@fabiocruzcoelho
fabiocruzcoelho / generate-ssh-key.sh
Created June 28, 2018 18:10 — forked from grenade/01-generate-ed25519-ssh-key.sh
Correct file permissions for ssh keys and config.
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/id_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/github_rsa
ssh-keygen -t rsa -b 4096 -N '' -C "rthijssen@gmail.com" -f ~/.ssh/mozilla_rsa
@fabiocruzcoelho
fabiocruzcoelho / git-branch-simplify.md
Created February 14, 2018 15:33 — forked from datagrok/git-branch-simplify.md
How to simplify the graph produced by git log --graph

Ideas for improvements to git log --graph

I will maybe someday get around to dusting off my C and making these changes myself unless someone else does it first.

Make the graph for --topo-order less wiggly

Imagine a long-running development branch periodically merges from master. The git log --graph --all --topo-order is not as simple as it could be, as of git version 1.7.10.4.

It doesn't seem like a big deal in this example, but when you're trying to follow the history trails in ASCII and you've got several different branches displayed at once, it gets difficult quickly.

@fabiocruzcoelho
fabiocruzcoelho / exemplo-git.txt
Last active February 14, 2018 15:48 — forked from wedsonlima/exemplo-git.txt
Exemplos de uso do Git
# Link com comandos (desfazendo as coisas)
https://git-scm.com/book/pt-br/v1/Git-Essencial-Desfazendo-Coisas
# Comandos basicos
git clone git@github.com:wedsonlima/git-presentation.git
git remote -v # pra onde o respositório está apontando
git branch # listar os branchs existentes
git branch tarefa1
git checkout tarefa1
echo 'arquivo 1' > file1.txt