git

Create a new repository on the command line

touch README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin https://github.com/pengfeis/try-git.gitgit push -u origin master


Push an existing repository from the command line

git remote add origin https://github.com/pengfeis/try-git.git
git push -u origin master

Show up git config 

git config --list, or look at your ~/.gitconfig file. Local config will be in your repository's .git/config file.

posted @ 2014-09-02 00:26  pengfeis  阅读(133)  评论(0)    收藏  举报