Skip to content

Instantly share code, notes, and snippets.

@gyliu513
Last active January 10, 2017 05:16
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 gyliu513/ee94a61b07b723a966b024b9d3fa40d0 to your computer and use it in GitHub Desktop.
Save gyliu513/ee94a61b07b723a966b024b9d3fa40d0 to your computer and use it in GitHub Desktop.
github command
Git global setup
git config --global user.name "Guangya Liu"
git config --global user.email "gyliu@apache.com"
git config --global user.name "Guangya Liu"
git config --global user.email "gyliu513@gmail.com"
git config user.name "Guangya Liu"
git config user.email "gyliu513@gmail.com"
Create a new repository
git clone git@gitlab.com: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 git@gitlab.com: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