DEV Community

Tiger Oakes
Tiger Oakes

Posted on • Originally published at tigeroakes.com on

TIL How to use git branch aliases with Mozilla Central

I just set up Mozilla Central with a git wrapper so I can contribute to the main Gecko codebase using Git. It works great, but the default branch has an unusual name compared to what I’m used to.

> git branch
branches/default/tip
bug1602126
Enter fullscreen mode Exit fullscreen mode

You can create symbolic references in Git, so that the default branch has a name you’re used to.

> git symbolic-ref refs/heads/main refs/heads/branches/default/tip

> git branch
branches/default/tip
bug1602126
main -> branches/default/tip

> git checkout main
Switched to branch 'main'

> git status
On branch branches/default/tip
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Qodo Takeover

Introducing Qodo Gen 1.0: Transform Your Workflow with Agentic AI

Rather than just generating snippets, our agents understand your entire project context, can make decisions, use tools, and carry out tasks autonomously.

Read full post

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay