Skip to content

Instantly share code, notes, and snippets.

@evanslai
Last active June 9, 2020 12:25
Show Gist options
  • Save evanslai/3615992 to your computer and use it in GitHub Desktop.
Save evanslai/3615992 to your computer and use it in GitHub Desktop.
Git: First-time System Setup #git
# 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