History
The History tab in the lower area of the Git view shows the commit log. On the left it lists the local and remote branches, in the middle the commits, on the right the details of the selected commit.
Filter and search the log
The toolbar above the log has these controls:
| Control | Action |
|---|---|
| Branch selector | All branches, Current branch (first-parent) or a single local branch. First-parent hides the commits that came in through merges. |
| Search log… | Filters the log by text. |
| Graph | Shows or hides the commit graph next to the log. Also Git › Toggle Commit Graph. |
Commit details
Click a commit to show its details on the right: message, author, date and the changed files. Click a file to show its diff.
Edit message or date of a local commit
Commits that are not pushed yet can be changed.
- Select the commit.
- In the details, click Edit.
- Change the commit message or the date.
- Click Save.
Editing rewrites the commit and all later local commits. Their SHAs change.
Commit context menu
Right-click a commit in the log:
| Item | Action |
|---|---|
| Publish through here (n commits) | Only on unpublished commits. Pushes the oldest unpublished commit up to and including this one. The affected commits are highlighted while the menu is open. |
| Cherry-pick sha onto current | Applies the commit to the current branch. |
| Tag this commit (sha)… | Opens the tag dialog for this commit. See Branches and tags. |
| Copy full SHA | Copies the commit hash. |
| Open Projectdocs Entry… | Opens the projectdocs entry linked to the commit through a changelist. If there are several, you pick one. See Changelists. |
Branch list
The branch list on the left has the sections Local and Remote. A dot marks the current branch. Right-click a branch to open the branch context menu. See Branches and tags.