網(wǎng)站建設(shè)月總結(jié)怎么做百度關(guān)鍵詞排名
git remote add <遠(yuǎn)程倉庫名> <倉庫遠(yuǎn)程地址> :給遠(yuǎn)程倉庫取個別名,簡化一大堆字符串操作
git remote add origin xxx.git :取個Origin名字
git remote -v :查看本地存在的遠(yuǎn)程倉庫
git pull <遠(yuǎn)程倉庫名><遠(yuǎn)程分支名>:<本地分支名> 相同可取消冒號后面部分
git pull origin master:master | git pull origin master (先拉取然后合并,產(chǎn)生沖突,解決沖突,再提交)
git push 推送更新內(nèi)容
git remote show origin 比較當(dāng)前倉庫和遠(yuǎn)程倉庫差異,是否遠(yuǎn)程倉庫代碼有更新或者本地是否需要pull或pull代碼
up to date:不需要Push和Pull了
local out of date:表示可以拉取遠(yuǎn)程倉庫代碼, git pull origin master
fast-forwardable:表示可以將本地倉庫代碼推送給遠(yuǎn)程倉庫了 git push origin master