Git命令使用和配置

git config --global user.name "your name"

git config --global user.email "your email"

mkdir test

cd test

git init

git remote add origin https://github.com/user/project

git config branch.master.remote origin

git config branch.master.merge refs/heads/master

git pull

git add filename

git commit -m "message"

git push -u origin master

posted @ 2014-06-11 12:21  iak  阅读(156)  评论(0编辑  收藏  举报