question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Alias for Branches

See original GitHub issue

Would it be possible to add command like configurations, e.g. Alias and Description for branches? I am having an issue where my branch names are becoming fairly long, and would improve ease of use of my CLI if descriptions and aliases for branches were avaialable.

app.Configure(config =>
{
  config.AddBranch<AddSettings>("add", add =>
  {
    add.Alias("a") // <-- or something similar
    add.SetDescription("Add something");
    add.AddCommand<AddPackageCommand>("package");
    add.AddCommand<AddReferenceCommand>("reference");
  })
});

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:3
  • Comments:10 (9 by maintainers)

github_iconTop GitHub Comments

3reactions
FrankRay78commented, Feb 9, 2023

All, thanks to @ilyahryapko you can now add an alias to a branch. This functionality has now been merged into main.

3reactions
patriksvenssoncommented, May 14, 2021

@idormenco That would be great! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

git - Create a branch alias?
Git does not support aliases for branches. ... Specifically, take a look at the role of the integration branch and the release candidate...
Read more >
Set Branch Alias with Git
Learn how to create branch aliases with git from command line so that you can check out a branch by alias.
Read more >
git alias for merging current branch with master
I'm trying to create a git alias that merges the currently checked out branch into the master branch. Specifically I'd want to quickly...
Read more >
Assign an Alias to a Branch
An Alias helps point to a particular branch in your stack. When your alias points to a specific branch, that branch acts as...
Read more >
Aliases
Branch aliases are great for aliasing main development lines. But in order to use them you need to have control over the source...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found