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 checkout: Create a user experience for switching to another branch #277

Closed
NadiaIdris opened this issue Dec 13, 2023 · 0 comments · Fixed by #298
Closed

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

Create a giti branch checkout user experience

  1. Select the branch to switch to

Use select_from_list() function to display single select component. It's defined in public_api.rs file.

> giti branch checkout
Up or Down:    navigate
Return:        confirm selection
Esc, Ctrl+C:   exit program

Please select a branch to switch to 
    ◉ aaronsmith/branch-1
    ◌ (current) main
    ◌ NadiaIdris/123-branch  
    ◌ NadiaIdris/test-branch  
  1. Get confirmation to have switched to the selected branch

Switched to branch ✅ NadiaIdris/123-branch

  1. If user tries to switch to the current branch

You are already on branch main

@nazmulidris nazmulidris changed the title [tuify][giti] giti branch checkout: Create a user experience for switching to another branch [giti] giti branch checkout: Create a user experience for switching to another branch 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

Successfully merging a pull request may close this issue.

1 participant