Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What to do after typing in commit message for git?

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.

like image 750
Curyous Avatar asked Feb 19 '11 04:02

Curyous


People also ask

What happens after typing git commit?

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.

What to do after committing a message?

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.

How do you commit after typing text?

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.

What to do after committing changes in git?

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.


1 Answers

Save the file and exit your editor.

like image 64
Nicholas Riley Avatar answered Sep 21 '22 12:09

Nicholas Riley