[英]Git pull changes for active branch
Question is simple how can I pull changes for my active branch without using full command git pull origin <branch_name>
there must be shortcut for this command, is there? 问题很简单如何在不使用完整命令的情况下为我的活动分支提取更改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
Thanks 谢谢
UPDATE UPDATE
Based on bellow accepted answer this is output which explains more 根据波纹管接受的答案,这是更多解释的输出
>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.