简体   繁体   English

arc feature [branch-name]和git branch [branch-name]之间有什么区别?

[英]What are the differences between arc feature [branch-name] and git branch [branch-name]?

What are the differences between arc feature [branch-name] and git branch [branch-name] ? arc feature [branch-name]git branch [branch-name]之间arc feature [branch-name]什么区别?

They both seem to create a new branch. 他们似乎都创建了一个新的分支。

arc feature [branch-name] will: arc feature [branch-name]将:

  • Create a branch based from the commit you currently have checked out, 根据您当前签出的提交创建分支,
  • Set the tracking to the branch you have checked out (this will be to track the local branch, not the branch on your remote), 将跟踪设置为您已检出的分支(这将跟踪本地分支,而不是远程分支),
  • Check out that branch. 看看那个分支。

git branch [branch-name] will only create a branch based from the commit you currently have checked out. git branch [branch-name]只会根据您当前签出的提交创建一个分支。

If you are using the Arcanist workflow, it is strongly recommended to use arc feature for your branches as this tends to lend itself well to the followup commands of arc diff and arc land . 如果您正在使用Arcanist工作流程,强烈建议您为分支使用arc feature ,因为这往往非常适合arc diffarc land的后续命令。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Git结账差异git结账来源/ <branch-name> 和git结帐 <branch-name> ? - Git checkout difference git checkout origin/<branch-name> and git checkout <branch-name>? 我应该何时在git命令中使用“remote / branch-name”vs“remote branch-name”? - When should I use “remote/branch-name” vs “remote branch-name” in git commands? git stash:避免“打开” <branch-name> 消息中的字符串 - git stash: avoid “on <branch-name>” string in message posh-git显示长分支名称 - posh-git shows long branch-name 关于ref / heads / [branch-name]含义的困惑 - Confusion about what ref/heads/[branch-name] means 使用 `git push origin:branch-name` 有条件地删除远程分支……但前提是分支存在? - Conditionally delete a remote branch using `git push origin :branch-name` … but only if branch exists? git branch -D branch-name是否确实删除指定的分支 - Does git branch -D branch-name really deletes specified branch 为什么在git 1.5中git checkout“ origin / branch-name”导致“ no branch”? - Why does git checkout “origin/branch-name” lead to “no branch”, in git 1.5? `git pull` 不合并,但 `git pull origin<branch-name> `会,为什么?</branch-name> - `git pull` doesn't merge, but `git pull origin <branch-name>` does, why? 如何解决`git checkout的问题 <branch-name> `给我带来了过时的提交? - How to solve the issue that `git checkout <branch-name>` brings me a commit that was outdated?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM