After I type in git commit -a
a text editor pops up and I type in my comment. What buttons do I have to press after typing in the comment, to get it to move to the next stage of actually committing?
I'm using mysysGit on Windows with the default setup.
A git commit is executed in the course of a project to record progress. This progress is then pushed to a remote repository (like on github.com) by executing a git push . These changes or progress could mean any additions, deletions, or updates to the files stored in the repository.
A git commit always requires a comment. You can give one like this git commit -m "my comment" . If you do not provide a comment here, then a text editor pops up to force you to give a comment. Sometimes, you may actually need the editor to put in the commit message.
The easiest way to create a Git commit with a message is to execute “git commit” with the “-m” option followed by your commit message. When using the Git CLI, note that you should restrict your commit message in order for it not to be wrapped.
Change the commit contents (and message, if you want). Here, Git stops after remaking this commit and allows you to do whatever you want. The usual thing is to use git commit --amend to replace the commit, then git rebase --continue to let Git continue with the rebase operation.
Save the file and exit your editor.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With