Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
Setting up a local repo and pushing to github
Global setup:
Set up git
git config --global user.name "FirstName LastName"
git config --global user.email youremail@gmail.com
Next steps:
mkdir test
cd test
git init
touch README
git add README
git commit -m 'first commit'
git remote add origin git@github.com:yourname/test.git
git push -u origin master
Existing Git Repo?
cd existing_git_repo
git remote add origin git@github.com:yourname/test.git
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment