I write my commits in the following way, namely I try to document what has been done and what remains to be done (todo list):
Done:
- task1 done
Todo:
- task2
-- implement feature1
-- implement feature2
- task3
-- implement feature1
-- implement feature1
Is there a way to automatically copy the content of the previous commit into the new commit to edit (in my case, could be interesting for the todo list)
If someone have another system of "todo list" integrated with git, I am also happy to hear
Sure. Look at the
-Cand-carguments togit commit:If you want to make a new commit that re-uses the messages from the current HEAD commit, just run:
Or if you want to minimize typing:
(Because
@is another name forHEAD.)