git remote add origin https://github.com/... //添加本地账号push地址(相当于添加自己的repository的地址,向此地址check in)

git push -u origin master //把本地master bransh代码做的改动上传到自己本地账号的push地址

git remote add upstream https://github.com/.... //添加原始项目的上传地址

git fetch upstream //sync原始项目的代码

git merge upstream/master //merge本地master branch的代码与原始项目的代码

git remote -v //查看所有的上传地址(包括自己的repository地址和原始项目的repository地址)

posted on 2014-08-19 07:22  ximenchuixie  阅读(114)  评论(0编辑  收藏  举报