6 lines
		
	
	
		
			147 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			6 lines
		
	
	
		
			147 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
| #!/bin/bash
 | |
| set -e
 | |
| TARGET=$(git rev-parse ${1})
 | |
| git commit --fixup=${TARGET} ${@:2}
 | |
| EDITOR=true git rebase -i --autostash --autosquash ${TARGET}^;
 | 
