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

Empty commits after rebase #212

Open
abitrolly opened this issue Jul 17, 2024 · 1 comment
Open

Empty commits after rebase #212

abitrolly opened this issue Jul 17, 2024 · 1 comment

Comments

@abitrolly
Copy link
Contributor

After doing rebase, how to automatically remove empty commits? Like this one.

containerd/nerdctl@93a319b

From 93a319bb33596026a8140b70382b89507f19efda Mon Sep 17 00:00:00 2001
From: Anatoli Babenia <[email protected]>
Date: Sat, 22 Jun 2024 19:52:30 +0300
Subject: [PATCH] Replace `echo -e` with `printf` for the `shellcheck`

https://www.shellcheck.net/wiki/SC3037

Signed-off-by: Anatoli Babenia <[email protected]>
@abitrolly
Copy link
Contributor Author

abitrolly commented Jul 17, 2024

For the record, empty commits can be removed after rebase with this.

git rebase --no-keep-empty -f upstream/main

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

1 participant