Git Cheat Sheet

# Print current username and email
git config user.name
git config user.email

# Update email for current project
git config user.email "koray@tugay.biz"

# Update email globally
git config --global user.email "koray@tugay.biz"

# Pushing a Local Repository to GitLab 
git remote add gitlab https://gitlab.com/{your-username-here}/{your-repo-here}
git push gitlab master
git branch --set-upstream-to=gitlab/master master