Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[giti] giti branch delete: Prefix relevant branches with "(current) " and "(merged) " #276

Open
NadiaIdris opened this issue Dec 13, 2023 · 0 comments

Comments

@NadiaIdris
Copy link
Contributor

Prerequisites

Install and run giti

  1. Move to ./tuify folder in your terminal
  2. Run nu run.nu install-giti to install giti locally to ~/.cargo/bin
  3. Run giti from anywhere on your system
  4. To delete one or more branches in your repo run giti branch delete

Private giti design document

Prefix relevant branches with "(current) " and "(merged) "

In tuify component add the following:

  1. Prefix current branch name with (current) . E.g. (current) NadiaIdris/branch-1
  2. Prefix a branch which has been merged to remote main development branch with (merged) . E.g. (merged) NadiaIdris/branch-2.
    • Note: add two spaces after (merged) , so that in monospace font, all the branch names start at the same column.
Up or Down:      navigation
Space:           select or unselect branches
Return:          confirm selection
Esc or Ctrl+C:   exit program

Please select branches you want to delete
  ›  ☐ (current) aaronsmith/branch-1
     ☐ main     
     ☐ (merged)  NadiaIdris/branch-2
     ☐ NadiaIdris/branch-3
     ☐ NadiaIdris/branch-4
@NadiaIdris NadiaIdris changed the title [tuify][giti] Prefix relevant branches with "(current) " and "(merged) " [tuify][giti] giti branch delete: Prefix relevant branches with "(current) " and "(merged) " Dec 13, 2023
@nazmulidris nazmulidris changed the title [tuify][giti] giti branch delete: Prefix relevant branches with "(current) " and "(merged) " [giti] giti branch delete: Prefix relevant branches with "(current) " and "(merged) " Dec 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant