Last active
January 10, 2017 05:16
-
-
Save gyliu513/ee94a61b07b723a966b024b9d3fa40d0 to your computer and use it in GitHub Desktop.
github command
This file contains hidden or 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
Git global setup | |
git config --global user.name "Guangya Liu" | |
git config --global user.email "[email protected]" | |
git config --global user.name "Guangya Liu" | |
git config --global user.email "[email protected]" | |
git config user.name "Guangya Liu" | |
git config user.email "[email protected]" | |
Create a new repository | |
git clone [email protected]:kdcos/doc.git | |
cd doc | |
touch README.md | |
git add README.md | |
git commit -m "add README" | |
git push -u origin master | |
Existing folder or Git repository | |
cd existing_folder | |
git init | |
git remote add origin [email protected]:kdcos/doc.git | |
git add . | |
git commit | |
git push -u origin master |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment