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

[RFC] hit rename #160

Closed
chshersh opened this issue Jun 3, 2020 · 0 comments · Fixed by #181
Closed

[RFC] hit rename #160

chshersh opened this issue Jun 3, 2020 · 0 comments · Fixed by #181
Assignees
Labels
CLI command-line interface Git Git commands

Comments

@chshersh
Copy link
Contributor

chshersh commented Jun 3, 2020

It's often useful to rename branches (both locally and remotely). I propose to add the hit rename command, which will take care of renaming branches.

For example, if you created a new branch with hit wip (proposed in #159), you can easily rename it under the issue 42 with the following command:

hit rename wip 42

The logic is the following:

  1. Rename local branch to the corresponding issue title/random string.
  2. Check if the remote branch exists, and rename it as well.
@chshersh chshersh added Git Git commands CLI command-line interface labels Jun 3, 2020
@chshersh chshersh added this to the v0.2.0.0: Better workflow milestone Jun 24, 2020
@vrom911 vrom911 self-assigned this Jun 29, 2020
vrom911 added a commit that referenced this issue Jun 30, 2020
vrom911 added a commit that referenced this issue Jun 30, 2020
chshersh pushed a commit that referenced this issue Jun 30, 2020
* [#160] hit rename

Resolves #160

* Fix Hlint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLI command-line interface Git Git commands
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants