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 new: Create a user experience for creating a new branch #278

Closed
NadiaIdris opened this issue Dec 13, 2023 · 1 comment

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. For example to delete one or more branches in your repo run giti branch delete.

Private giti design document

Create a giti branch new user experience

giti branch new creates a new branch and automatically switches to this branch.

We have 2 use cases to consider. This is how the user experience should look like:

1. In case user didn't type branch name
If user presses types giti branch new and then presses enter, ask them to type new branch name. Use readline for this.

> giti branch new

Please type branch name you want to create after "new". 
For example `giti branch new my-new-branch`

2. User typed branch name

> giti branch new NadiaIdris/new-branch

You created and switched to new branch:
✅ NadiaIdris/new-branch
@nazmulidris nazmulidris changed the title [tuify][giti] giti branch new: Create a user experience for creating a new branch [giti] giti branch new: Create a user experience for creating a new branch Dec 17, 2023
@NadiaIdris
Copy link
Contributor Author

Closed in PR #306

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