Skip to content
smasher164Public

About

squash last N commits non-interactively

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

git-fixup

$ go get -u akhil.cc/git-fixup

usage:
	git-fixup [--root] [HEAD~N]
	git-fixup edit filename

Squash the last N commits of the current branch into a single commit. This tool automatically performs an interactive rebase for you with either HEAD~N, to specify the last N commits, or --root to go to the initial commit. For instance, if git fixup HEAD~3 is specified, it automatically applies the following:

reword AAAAAAA Message
fixup  BBBBBBB Message
fixup  CCCCCCC Message

This gives you a chance to reword the oldest of the N commits.

git-fixup edit is the entrypoint for the GIT_SEQUENCE_EDITOR that applies edits to the interactive rebase on your behalf.

About

squash last N commits non-interactively

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages