Skip to content

Instantly share code, notes, and snippets.

View pascalrogalla's full-sized avatar
🦊
Ring-ding-ding-ding-dingeringeding!

Pascal Rogalla pascalrogalla

🦊
Ring-ding-ding-ding-dingeringeding!
View GitHub Profile
@pascalrogalla
pascalrogalla / git-add-key-2.sh
Last active March 11, 2020 14:44 — forked from juanique/git-add-key.sh
Bash script to add a new SSH key to your GitHub account
function git_upload_ssh_key () {
read -p "Enter github email : " email
echo "Using email $email"
if [ ! -f ~/.ssh/id_rsa ]; then
ssh-keygen -t rsa -b 4096 -C "$email"
ssh-add ~/.ssh/id_rsa
fi
pub=`cat ~/.ssh/id_rsa.pub`
read -p "Enter github username: " githubuser
echo "Using username $githubuser"
@pascalrogalla
pascalrogalla / gitcheats.txt
Created November 14, 2019 13:46 — forked from chrismccoy/gitcheats.txt
git cheats
# shortform git commands
alias g='git'
# print your list of commits this month for a repo
git log --since='last month' --author="$(git config user.name)" --oneline
# pull in remote changes for the current repository and all its submodules
git pull; git submodule foreach git pull origin master
# get a list of all commit messages for a repo