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

Add a way to split the last commit as a separate branch #397

Open
draftcode opened this issue Aug 16, 2024 · 1 comment
Open

Add a way to split the last commit as a separate branch #397

draftcode opened this issue Aug 16, 2024 · 1 comment

Comments

@draftcode
Copy link
Contributor

Relatively often, I find myself adding a commit and then realize that that commit should be in another branch. It's nice if there's a convenient way to split the last commit as a separate branch.

@Brookke
Copy link
Contributor

Brookke commented Aug 22, 2024

I had a similar request in the discord adding that comment here:

av stack squash takes the commits of the current branch and puts them into a single commit
av stack split takes the commits of the current branch and splits them into separate stacked branches.

Perhaps split could take a flag e.g. --last-n-commits=n so that you can just split of the last commit

av stack fold combines the current branch with its parent and updates the children in the stack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants