Created
March 30, 2011 19:19
-
-
Save newfront/895097 to your computer and use it in GitHub Desktop.
github's directions for initializing a new Git repository
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
Global setup: | |
Download and install Git | |
git config --global user.name "<name>" | |
git config --global user.email <email> | |
Next steps: | |
mkdir dailyhacking | |
cd dailyhacking | |
git init | |
touch README | |
git add README | |
git commit -m 'first commit' | |
git remote add origin [email protected]:<github_username>/<github_repo_name>.git | |
git push -u origin master | |
Existing Git Repo? | |
cd existing_git_repo | |
git remote add origin [email protected]:<github_username>/<github_repo_name>.git | |
git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment