Skip to content

Instantly share code, notes, and snippets.

@yongyanghz
Created February 19, 2019 00:37
Show Gist options
  • Save yongyanghz/49703cc834fc4f4b0267170c6df38863 to your computer and use it in GitHub Desktop.
Save yongyanghz/49703cc834fc4f4b0267170c6df38863 to your computer and use it in GitHub Desktop.
Github Project Setup
…or create a new repository on the command line
echo "# Guitar-Ear-Training" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:yongyanghz/Guitar-Ear-Training.git
git push -u origin master
…or push an existing repository from the command line
git remote add origin git@github.com:yongyanghz/Guitar-Ear-Training.git
git push -u origin master
// Undo add file.txt
git reset file.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment