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

[Feature Request] git-squash with concat messages of commits #794

Closed
razbensimon opened this issue Nov 3, 2019 · 5 comments
Closed

[Feature Request] git-squash with concat messages of commits #794

razbensimon opened this issue Nov 3, 2019 · 5 comments

Comments

@razbensimon
Copy link

Is it possible to add an option to git squash that will produce a squashed commit with concatenating messages string of the selected commits?

something like gitkraken's squash option

@spacewander
Copy link
Collaborator

If you only want to squash and concatenate the messages of current branch, you could use git rebase -i and change pick to squash in the editor.

@razbensimon
Copy link
Author

I can. But what is the point?
I want the process to be easy, quick and user friendly. And of course automatic - I don't want to change every commit from pick to squash manually.

@spacewander
Copy link
Collaborator

@razbensimon
I just submitted the PR: #795

Could you try this feature and give us your feedback? You can use the commands below to update it:

git clone https://github.com/spacewander/git-extras -b git-squash-commit-msg
cd git-extras && make install

@razbensimon
Copy link
Author

Yes it works great!

@spacewander
Copy link
Collaborator

Solved.

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