Can I manage a remote symbolic-ref?

I'd like to define and manage a remote symbolic-ref. Is there any way to manage symbolic-refs in the remote repository?

For example, I have an internal process/script that I'd like to configure with a single git reference that points to a branch. Behind the scenes I want to be able to change the reference in Bitbucket to point to another branch and thus allowing me to never change the internal process/script.

4 answers

Just to clarify - what I want is a way to manage symbolic references.

We have several release branches that "roll" (for lack of a better term). For example, lets say that I have 2.0, 2.1, and 2.2 in the works. We would like our build system to be configured once to get "red", "green" and "blue" where these are references to 2.0, 2.1, and 2.2, respectively. At some point we start 2.3, we release, and we want "red", "green", and "blue" to now reference 2.1, 2.2, and 2.3, respectively. We don't want to reconfigure the build system; instead, we just want to change the symbolic references.

Does that make sense? Is there a better way to go about doing this?

In my Git environment Symbolic References would make my life much easier, eliminating many manual steps when doing a release.

0 vote
Jason Worley Atlassian Team Jul 23, 2013

I don't believe this is supported for security reasons.

Take a look here for more details: https://bitbucket.org/site/master/issue/4012/symlinks-are-not-followed-when-encountered

I'm looking to manage symbolic references, not symbolic links.

I cannot downgrade this answer as I don't have enough karma points.

Any other ideas? As I mentioned I am referring to symbolic references (a la "git symbolic-ref") which is essentially a way of creating an alias.

In my Git environment Symbolic References would make my life much easier, eliminating many manual steps when doing a release.

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

23,665 views 26 12
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you