A commit persists all staged changes in your local repository.
Remember: Only staged changes...
...will be included in a commit. Changes that you have not staged will simply remain as local modifications in your working copy - waiting to be either staged & committed later or discarded.
Tower's commit area expands as soon as you click into the commit message subject textfield ("Short Commit Summary"). Alternatively, you can press ⌘ + ⇧ + C from anywhere and directly start typing your commit message.
Thebutton is enabled as soon as both...
- a commit subject was entered (filling the "Extended Description" textfield is optional) and
- staged changes are present.
Checking theoption automatically appends your name at the end of the commit's message.
Changing Your Last Commit
The Amend option allows you to change your very last commit. Amending rewrites the commit history so that you will not be able to see that the commit was changed at all.
You can add additional changes to your last commit or just modify its message (or both). When checking the amend option in the commit dialog, Tower prefills the message textfield with your last message.
Tip: Tower offers a very quick way to use amend in cases when you don't need to change the message (but instead just want to add those two forgotten changes...): simply hold the ⌥ key to quickly transform the button into an button.
Use Amend with Care!
Be careful when using the amend option: don't amend commits that you've already pushed to a remote repository!
User Profiles are templates that allow you to quickly set or switch your committer identity.
- Add and manage profiles in Tower's Preferences, within the "User Profiles" tab.
- Use a certain profile in a repository by selecting it within the "Settings" view in that repository's sidebar.
- Use a certain profile for just a certain commit by choosing it when expanding the Commit Composing view (by clicking into the "Subject" text field in the Working Copy).
Simply click on the user avatar image to see, manage or change your user profile.