Git的remote
生活随笔
收集整理的這篇文章主要介紹了
Git的remote
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
git remote
列出所有的遠(yuǎn)程主機(jī)名字 這個(gè)顯示的默認(rèn)的origin
git remote -v
列出遠(yuǎn)程庫(kù)的地址
git clone -o 遠(yuǎn)程庫(kù)的自定義名字? 遠(yuǎn)程庫(kù)的地址
git clone -o jQuery https://github.com/jquery/jquery.gitgit remote show? 名字
查看遠(yuǎn)程庫(kù)的信息$ git remote show origin * remote originFetch URL: https://github.com/7117/CodePracticePush URL: https://github.com/7117/CodePracticeHEAD branch: masterRemote branch:master trackedLocal branches configured for 'git pull':master merges with remote mastersunx merges with remote masterLocal ref configured for 'git push':master pushes to master (up to date)git remote add <主機(jī)名> <網(wǎng)址>
? ? ? ?添加遠(yuǎn)程主機(jī)吧,名字既作用,哈哈哈哈!!!
git remote rm?命令用于刪除遠(yuǎn)程主機(jī)
git remote rename <原主機(jī)名> <新主機(jī)名>
?
?
總結(jié)
以上是生活随笔為你收集整理的Git的remote的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 中国reits基金怎么购买
- 下一篇: Git切换分支报错