821 views


To set a git branch alias, execute the following:

# alias -> real branch git symbolic-ref refs/heads/trunk refs/heads/master

With the alias in place, you can execute commands like:

git checkout trunk git branch # * master

Not only can you create git aliases for commands, but you can create aliases for branches!

The post Set Branch Alias with Git appeared first on David Walsh Blog.< I need to switch between mercurial and git frequently, so I end up reversing command and branch names constantly.[Payments TRON Blockchain Merchants Launching And TRX For]

. Just think about main branch or revision names: svn uses “trunk”, git uses “master”, and mercurial (hg) uses “tip”.

Version control systems can be difficult to use, especially when you don’t use a UI app.
Source: https://davidwalsh.name/set-branch-alias-with-git

Comments
No comments yet. Be first to leave one!