Salesforce

Performing Miscellaneous Operations with TortoiseGit (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

Performing Miscellaneous Operations with TortoiseGit

There are some operations as follows, which you can perform locally as well as remotely.

Diff

TortoiseGit spots the difference when a project is modified. With Diff, you can see the uncommitted changes you have made in your working tree.

For more information on Diff, visit https://tortoisegit.org/docs/tortoisegit/tgit-dug-diff.html.

Diff with prev version

Here you can see the difference between the last committed revision and your working tree.

Show Log

This option opens the history of changes made to the repository.


Revision Graph

The revision graph of TortoiseGit analyzes the revision history and creates a pictorial graph showing nodes at tag, branch, and other references. Each node in the revision graph represents a change in the repository.

Whenever you hover over the revision box, the revision date, author and comments are shown in a hint box. You can configure the graph appearance in TortoiseGit general settings.

Branching and Merging

One of the prominent features of version control systems is their ability to isolate changes onto a separate line of development. This line is known as a branch. You can eventually merge the working tree into the desired branch.

Creating a Branch

Branches are created to try out new features without disturbing the main line of development. You can create a branch as follows:

  1. Go to File > Version Control > Create Branch.

  2. Name the branch.

  3. Click OK.

For more information on other options on the dialog box, visit https://tortoisegit.org/docs/tortoisegit/tgit-dug-branchtag.html.

Merging a Branch

When you have a branch under development, it subsequently stabilizes with the changes that you were doing under it. At that point of time you need to merge the matured branch in to the established branch.

You can merge a branch into a stable branch as follows:

  1. Go to File > Version Control > Merge.

  2. Select the branch to merge.

  3. Click OK.

Note: Merging always happens within a working tree. When you need to merge the changes into an established branch then you need to check-out the working tree for that branch and invoke Merge.

Resolving Conflicts

At times the changes fail to get merged automatically. This is due to a conflicting situation. You can resolve conflicts for individual files as follows:

1. Select Version Control > Resolve. The conflicting files are highlighted in red.

2. Right-click on the conflicted file.

3. Choose one of the options of Resolve.

Related Topics

Connecting Magic xpa with Git Repository

Reference
Attachment 
Attachment