簡體   English   中英

Git拉動活動分支的變化

[英]Git pull changes for active branch

問題很簡單如何在不使用完整命令的情況下為我的活動分支提取更改git pull origin <branch_name>此命令必須有快捷方式,是嗎?

git checkout -b feature_x
git push origin feature_x
git pull origin feature_x  # is there shortcut, keeping in mind this is active branch

謝謝

UPDATE

根據波紋管接受的答案,這是更多解釋的輸出

>git remote show origin
* remote origin
  Fetch URL: git@github.com:XXX/FooBar.git
  Push  URL: git@github.com:XXX/FooBar.git
  HEAD branch: master
  Remote branches:
    master       tracked
    feature_x    tracked
  Local branches configured for 'git pull':
    master       merges with remote master
    feature_x    merges with remote feature_x    
  Local refs configured for 'git push':
    master       pushes to master       (up to date)
    feature_x    pushes to feature_x    (up to date)

git push --set-upstream origin feature_x將允許git pull成為git pull origin feature_x的簡寫

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM