Skip to content

Instantly share code, notes, and snippets.

View dibmartins's full-sized avatar
🎯
Focusing

Diego Botelho dibmartins

🎯
Focusing
View GitHub Profile
@dibmartins
dibmartins / install-git-kraken-ubuntu
Last active March 22, 2023 11:52
install-git-kraken-ubuntu
wget https://release.gitkraken.com/linux/gitkraken-amd64.deb
sudo dpkg -i gitkraken-amd64.deb
@dibmartins
dibmartins / convert-putty-ppk-to-pub
Created February 9, 2017 12:31
convert-putty-ppk-to-pub
sudo apt-get install putty-tools
puttygen id_dsa.ppk -O private-openssh -o id_dsa
puttygen id_dsa.ppk -O public-openssh -o id_dsa.pub
mkdir -p ~/.ssh
mv -i ~/id_dsa* ~/.ssh
chmod 600 ~/.ssh/id_dsa
chmod 666 ~/.ssh/id_dsa.pub
chmod 666 ~/.ssh/known_hosts
Listar commits:
git log --pretty=oneline
git log --pretty=format:"%h - %an, %ar : %s"
Ir para um commit específico:
git reset --hard 33145a2d8e2d767ec7a8e04d46e2926883c02d99
git fetch --all
git reset --hard
git pull origin <your_branch>
git stash save --keep-index --include-untracked
# Apagar arquivos que não monitorados:
git clean -df