English 中文(简体)
A. 现有分支的偏远
原标题:Get remote of current branch
  • 时间:2011-11-24 12:33:20
  •  标签:
  • git
  • alias

我怎么能够轻易地找到一个现有的分支? 我愿为将目前的分支推向上游创造出一条路,因此,我喜欢:

bpush = push {current remote} HEAD

我如何能够可靠地找到第二个论点?

最佳回答

第一,召集你的当地邮局,只将目前的分支机构推向上游部门,而不是所有对应部门:

git config Bull. 违约跟踪

然后简单

你们想要做的事情。

问题回答

如果你作为地方的上游建立一个遥远的分支,你就已经有一个“舒服”。

git push




相关问题
git confusion - cloning a repo is returning a past version

Im having some confusion with my git usage. I cloned a repo from one comp to the other, and the new clone is the state of the original that was active some time ago. So its cloning a past version. ...

Appropriate strategy for tagging and hotfixing with git

I was wondering if the strategy I m using for tagging and hotfixing tags (which then I use for deploying rails applications) with git is appropriate. For tagging I just tag a commit of the master ...

Tips on upgrading CVS to git/hg?

We still use CVS, I use git and hg for my personal use though I m still a novice at both, but I realize they re much more modern and better, faster, distributed, etc. It s just everyone is so ...

Using Git in a TFS shop

Using Git at home has spoiled me - I now find using TFS at work to be a bit of a drag and want to explore the possibility of using Git locally and syncing somehow with TFS. I figure there are a few ...

热门标签