git學習筆記四

  1. 遠程gerrit上面的修改如何同步到本地

    1. $ git ls-remote | grep hash-code

    會出現 : hash-code refs/changes/xx/xxxx/x

    1. git pull --rebase origion refs/changes/xx/xxxx/x
  2. 不知道往哪個倉庫提交

git remote -v 出現

gerrit.xxx ssh:gerrit.xxx.xxx…
應當這樣提交
git push gerrt.xxx HEAD:refs.for/branch-name

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章