Knowing that a branch is a pointer to the last commit. By example, the master branch is linked to the commit C1.
I want to know if it's possible to link a branch to another branch instead of a commit, which would make it a pointer of pointer (for those accustomed in C).
By example, I would like the master branch point to a release branch (by example 1.1). And if by any chance, a commit would happen in the branch 1.1, the master HEAD would follow the 1.1 HEAD.
Yes, you can make branch aliases or aliases to any ref. Say:
git symbolic-ref refs/heads/trackmaster refs/heads/realmaster
and you no longer have to manually catch up (possibly temporarily-)joined LOD's
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With