Last active
December 9, 2015 20:51
-
-
Save Shaltz/2fdc3a2c3b3ab7866d97 to your computer and use it in GitHub Desktop.
git commands to start a new project
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
* create a new repo on github (CLI) | |
git init | |
git config user.name "myName" (use the --global option to set has a global parameter) | |
git config user.email "[email protected]" | |
git add . | |
git commit -m "first commit" | |
git remote add origin [email protected]:Shaltz/myRepo.git | |
git push -u origin master | |
* push an existing local repo to a remote repo | |
git remote add origin [email protected]:Shaltz/fileTester.git | |
git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you