Commit changes

work in progress, sorry

c opens the commit menu in the Magit status buffer, allowing you to create new commits, amend and squash existing commits.

Spacemacs Magit - commit menu

Create a commit

c in the commit menu opens a commit message buffer showing all the changes in the currently staged files.

Type in a suitable commit message

Spacemacs Magit - message buffer

, , to create the commit or , k to cancel the commit

Spacemacs Magit - commit or cancel

GitHub Issues and commits

Including a reference to an issue, e.g. GH-42 or #42, you can link a commit to a GitHub issue.

Include the phrase Resolves #42 or Closes #42 anywhere in the commit message to automatically close an issue when a commit is pushed to GitHub.

Avoid using the #42 short form at the start of the line in Magit, as it will treated as a comment line and not included in the commit message.

results matching ""

    No results matching ""