标签:fetch 添加 add clone git sch pre web ...
$ git clone https://github.com/OuFeng/JF_WEB.git Cloning into ‘ticgit‘... remote: Reusing existing pack: 1857, done. remote: Total 1857 (delta 0), reused 0 (delta 0) Receiving objects: 100% (1857/1857), 374.35 KiB | 268.00 KiB/s, done. Resolving deltas: 100% (772/772), done. Checking connectivity... done. $ cd ticgit $ git remote -v --查看本地仓库中对应有哪些远程仓库;如果远程仓库不止有一个的话,则会列出多个仓库。
origin https://github.com/OuFeng/JF_WEB.git (fetch)
origin https://github.com/OuFeng/JF_WEB.git (push)
$ git remote origin $ git remote add pb https://github.com/paulboone/ticgit $ git remote -v origin https://github.com/schacon/ticgit (fetch) origin https://github.com/schacon/ticgit (push) pb https://github.com/paulboone/ticgit (fetch) pb https://github.com/paulboone/ticgit (push)
--抓取origin远程库的所有分支;只抓取数据,并不自动合并;
$ git fetch origin
--拉取origin远程库的所有分支;只抓取数据,自动合并;
$ git pull origin
$ git push origin master
$ git remote show origin
--把远程仓库pb重命名为paul $ git remote rename pb paul --删除paul远程分支的引用 $ git remote rm paul
标签:fetch 添加 add clone git sch pre web ...
原文地址:http://www.cnblogs.com/oufeng/p/6662931.html