-
How to cancel or edit the changes to the code I created in a branch in my fork of Sverchok? Or I can just create another change with correct description and then do the PR? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You mean you want to edit commit descriptions? The important thing to remember is that if you've edited something in your branch's history, if you have already pushed it somewhere (for example to github), when you will push it again you will have to do |
Beta Was this translation helpful? Give feedback.
You mean you want to edit commit descriptions?
If you need to edit the description of only the last commit, you can do
git commit --ammend
. Text editor will open and let you to edit your message.If you need to edit a number of messages in your branch, you can do
git rebase --interactive <STARTING_POINT>
, for examplegit rebase --interactive master
, if you started your branch from master. Text editor will open with a list of commits you've made from that starting point, prepended with the word "pick". This is actually a list of commands, to apply changes in this order. You can change the word "pick" to "reword", where you want to edit the message. After you close text editor, it will open…