Answer the question
In order to leave comments, you need to log in
How to perform some actions with commits in git?
I'm getting started with the git version control system. When working on my first project, the question arose whether it was possible to edit already made commits or not. Here is the sequence of actions I did in my project:
git checkout <хэш коммита 1>
git commit --amend -m "новый комментарий"
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question