1

Is it possible to give one branch two names?

The situation I have is that our team gave a branch a long, unwieldy name. Now, I'd like to give it another, shorter name for convenience. Is that possible? We're using github enterprise.

Edit: I need the alias (by whatever mechanism it is aliased) to exist in the central github enterprise-hosted repo, and NOT just be local to my repo.

4

2 回答 2

1

另一种选择是使用您想要的任何名称(更短,更方便)使用原始名称跟踪远程分支:

git branch --track short-name long-unwieldly-branch-name-from-remote
于 2014-09-11T20:14:10.623 回答
-1

我认为符号引用是您正在寻找的:

是否可以在 Git 中为分支起别名?

于 2014-09-11T20:09:03.410 回答