Last active
June 9, 2020 12:25
-
-
Save evanslai/3615992 to your computer and use it in GitHub Desktop.
Git: First-time System Setup #git
This file contains 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
# First-time system setup | |
git config --global user.name "Evans Lai" | |
git config --global user.email "[email protected]" | |
git config --global color.diff auto | |
git config --global color.status auto | |
git config --global color.branch auto | |
git config --global color.log auto | |
git config --global alias.co checkout | |
git config --global core.editor "vim" | |
git config --global core.autocrlf false | |
# First-time repository setup | |
git init | |
git add . | |
git commit -m "Initial commit" | |
# GitHub | |
git remote add origin [email protected]:evanslai/example.git | |
git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment