It contains the Locations column, the Commits column, and the Files column - each of which will be described below. The Locations column displays all branches, remotes, tags, stashes, and submodules contained in the repository.Įach item can be selected to reveal its location in the commit graph (excluding submodules). Each item also has a context menu which displays common actions. The Commits column displays a graph of all commits contained in the repository. The commit graph is drawn as a series of commit summaries connected via coloured lines (indicating the topology of the commits).Įach commit summary contains useful information such as the commit message and author, along with any associated branches. The context menu of a commit summary also contains common actions. When a commit summary is selected, the details of the selected commit are displayed in the Details section. Multiple commits can be selected to perform bulk operations such as squashing or dropping commits. If multiple commits are selected, a diff of the first and last commit will also be displayed in the Details section. The Files column displays a list of all files associated with the current selection. If no commits are selected, the files list will show all Unmerged, Modified, Untracked, and Staged files. If a commit is selected, the files list will show all changed files in the selected commit. The details section displays a detailed view of the selected item in the commit graph. When no commits are selected in the commit graph, the current state of the working directory and index is shown in the details section.įrom here you can prepare and create new commits.Ī diff is displayed for each Unmerged, Modified, Untracked, and Staged file. Each file has an associated tab which can be selected to view the changes to the individual file. To create a new commit, see Creating a commit. The command palette is a quick way to access a vast selection of commands available to you in Sublime Merge.įor example, renaming a branch or navigating to a tag When a commit is selected in the commit graph, the details of the selected commit are shown in the details section.Ĭommit metadata such as the commit message and author is displayed at the top of this section.īelow the commit metadata is a list of all changed files and their associated diffs (changes). You can open the command palette via Tools Command palette… or via Ctrl + p ( Cmd + p for MacOS). The command palette presents a list of commands which can be filtered by typing portions of the command name you're looking for. (See customizing the command palette) Creating a commit You can also add you're own custom commands to the command palette. Once you have made changes to any local files in your repository, your changes appear in the Pending changes section. Modified files appear in the Working Directory section, and new files appear in the Untracked Files section. To commit new changes to the local repository, you'll first need to stage the changes. Staging an entire file: select the Stage file button at the top of the file
0 Comments
Leave a Reply. |