Skip to content

Instantly share code, notes, and snippets.

@Shaltz
Last active December 9, 2015 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shaltz/2fdc3a2c3b3ab7866d97 to your computer and use it in GitHub Desktop.
Save Shaltz/2fdc3a2c3b3ab7866d97 to your computer and use it in GitHub Desktop.
git commands to start a new project
* 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 "myEmail@to.to"
git add .
git commit -m "first commit"
git remote add origin git@github.com:Shaltz/myRepo.git
git push -u origin master
* push an existing local repo to a remote repo
git remote add origin git@github.com:Shaltz/fileTester.git
git push -u origin master
@cat2cat
Copy link

cat2cat commented Aug 21, 2015

Thank you

@Shaltz
Copy link
Author

Shaltz commented Dec 9, 2015

;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment