This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |