Windows Git Reference

TortoiseGit Commands & Workflows

A practical Windows guide mapping common TortoiseGit right-click operations to the equivalent Git commands. It is designed as a companion to your Git Cheat Sheet.

How to use this guide: Most operations start by right-clicking the repository folder in Windows Explorer and selecting TortoiseGit. The equivalent Git command is shown for command-line reference.

1. TortoiseGit Basics

TortoiseGit / ActionWindows procedure / explanation
InstallInstall Git for Windows first, then install TortoiseGit. TortoiseGit provides Windows Explorer integration for Git.
RepositoryA Git repository is normally created inside a local project folder. TortoiseGit exposes Git operations through the Windows Explorer right-click context menu.
Context MenuRight-click a repository/folder in Windows Explorer → TortoiseGit to access Git operations.
Git BashFor commands that are easier to perform from a terminal, right-click the repository → Git Bash Here.

2. Clone a Repository

TortoiseGit / ActionWindows procedure / explanation
TortoiseGit → Clone...Right-click the target folder → TortoiseGit → Clone...
URLEnter the repository URL, for example an HTTPS or SSH repository URL.
DirectorySelect the local directory where the repository should be created.
CloneClick OK/Clone and wait for the clone operation to complete.
Equivalent commandgit clone <repo-url>

3. Create a Branch

TortoiseGit / ActionWindows procedure / explanation
Create from current branchRight-click repository → TortoiseGit → Create Branch...
Branch nameEnter a branch name such as feature/login-api.
Base revisionSelect the revision/branch from which the new branch should be created.
Switch immediatelyUse the option to switch/checkout the newly created branch if required.
Equivalent commandgit checkout -b <branch>

4. Checkout / Switch Branch

TortoiseGit / ActionWindows procedure / explanation
TortoiseGit → Switch/CheckoutRight-click repository → TortoiseGit → Switch/Checkout...
Select branchChoose the local or remote branch you want to switch to.
Create tracking branchWhen checking out a remote branch, TortoiseGit can create a local branch that tracks the remote branch.
Equivalent commandsgit checkout <branch> | git switch <branch>

5. Add and Commit Changes

TortoiseGit / ActionWindows procedure / explanation
Check for changesRight-click repository → TortoiseGit → Check for Modifications.
Add filesSelect unversioned files → right-click → Add.
CommitSelect changed/staged files → right-click → Git Commit → <branch>...
MessageEnter a meaningful commit message, review the changed files, then commit.
Equivalent commandsgit add <file> | git commit -m "<message>"

6. Pull Latest Changes

TortoiseGit / ActionWindows procedure / explanation
PullRight-click repository → TortoiseGit → Pull...
RemoteSelect the remote, normally origin.
Remote branchSelect the branch to pull from.
PullExecute the pull operation. Depending on configuration, Git may merge or rebase the fetched changes.
Equivalent commandgit pull <remote> <branch>

7. Fetch Changes

TortoiseGit / ActionWindows procedure / explanation
FetchRight-click repository → TortoiseGit → Fetch...
RemoteSelect origin or another configured remote.
Fetch allUse the appropriate option when you want to update all remote references.
ImportantFetch downloads remote changes without merging them into your current working branch.
Equivalent commandgit fetch <remote>

8. Push Changes

TortoiseGit / ActionWindows procedure / explanation
PushRight-click repository → TortoiseGit → Push...
RemoteUsually select origin.
BranchSelect the local branch and corresponding remote branch.
Set upstreamFor a new branch, configure the remote tracking/upstream branch when required.
Equivalent commandgit push <remote> <branch>

9. Merge a Branch

TortoiseGit / ActionWindows procedure / explanation
Checkout target branchFirst switch to the branch that should receive the changes.
MergeRight-click repository → TortoiseGit → Merge...
SourceSelect the branch or revision that should be merged.
ReviewResolve conflicts if Git reports any, then commit the merge result when required.
Equivalent commandgit merge <branch>

10. Rebase Using TortoiseGit

TortoiseGit / ActionWindows procedure / explanation
Checkout your branchSwitch to the branch that you want to rebase.
RebaseRight-click repository → TortoiseGit → Rebase...
BaseSelect the target branch/revision, such as origin/main.
ConflictsIf conflicts occur, resolve them and continue the rebase using the TortoiseGit rebase workflow.
Equivalent commandsgit rebase <base> | git rebase --continue

11. Create a Release Tag

TortoiseGit / ActionWindows procedure / explanation
Create TagRight-click repository → TortoiseGit → Create Tag...
Tag nameUse a clear release name such as v1.0.0.
RevisionCreate the tag from the exact commit that represents the release.
Push tagAfter creating the local tag, push it to the remote repository.
Equivalent commandsgit tag v1.0.0 | git push origin v1.0.0

12. Create a New Branch from a Release Tag

TortoiseGit / ActionWindows procedure / explanation
Fetch tagsFirst fetch the latest remote tags if the required tag is not available locally.
Checkout tagRight-click repository → TortoiseGit → Switch/Checkout... and select the release tag.
Create branchCreate a new branch from that tag, for example release/1.0.x.
Push branchPush the new branch to origin and configure upstream tracking if needed.
Equivalent commandsgit fetch --tags | git checkout -b release/1.0.x v1.0.0 | git push -u origin release/1.0.x

13. Stash Changes

TortoiseGit / ActionWindows procedure / explanation
Stash SaveRight-click repository → TortoiseGit → Stash Save... to temporarily store local modifications.
Stash ApplyUse Stash List and apply a selected stash when you want to restore the changes.
Stash PopApply the stash and remove it from the stash list when appropriate.
Equivalent commandsgit stash push -m "message" | git stash pop

14. Compare / Diff

TortoiseGit / ActionWindows procedure / explanation
Check modificationsUse TortoiseGit → Check for Modifications to review local changes.
DiffRight-click a modified file → Diff to compare it with the relevant Git version.
LogUse TortoiseGit → Show Log to inspect commit history.
Compare branchesFrom the log/branch comparison tools, compare revisions or branches before merging.
Equivalent commandsgit diff | git log | git diff <branch1>..<branch2>

15. Undo / Reset Changes

TortoiseGit / ActionWindows procedure / explanation
UnstageUse the TortoiseGit commit/staging interface to remove a file from the staging area without discarding its working-tree changes.
Revert commitUse TortoiseGit → Show Log → right-click the commit → Revert change by these commits.
ResetUse the reset functionality carefully when moving the branch pointer or changing the index/working tree.
Hard reset warningA hard reset can discard uncommitted changes. Confirm the files/commits you intend to remove before executing it.
Equivalent commandsgit reset <file> | git revert <commit> | git reset --hard <commit>

16. Resolve Merge Conflicts

TortoiseGit / ActionWindows procedure / explanation
Identify conflictTortoiseGit reports conflicted files after merge, rebase, pull, or another operation.
Edit conflictsRight-click the conflicted file → TortoiseGit → Edit Conflicts / Resolve using the configured merge tool.
Mark resolvedAfter resolving and saving the file, mark the conflict as resolved.
Complete operationFor a merge, commit the resolved result. For a rebase, continue the rebase.
Equivalent commandsgit status | git add <resolved-file> | git merge --continue / git rebase --continue

17. Manage Remote Repository

TortoiseGit / ActionWindows procedure / explanation
Remote settingsRight-click repository → TortoiseGit → Settings → Git → Remote.
Add remoteConfigure a remote name such as origin and its repository URL.
Change URLUpdate the remote URL when the repository location changes.
Equivalent commandsgit remote -v | git remote add <name> <url> | git remote set-url <name> <url>

18. Useful Windows + Git Commands

TortoiseGit / ActionWindows procedure / explanation
Open repository in ExplorerUse Windows Explorer and navigate to the repository folder.
Open Git BashRight-click inside the repository folder → Git Bash Here.
Current directorycd <folder-path>
List filesdir
Git statusgit status
Show branchesgit branch -a
Show remotesgit remote -v
View loggit log --oneline --decorate --graph --all

19. Recommended Windows Developer Workflow

TortoiseGit / ActionWindows procedure / explanation
1. PullTortoiseGit → Pull... before starting work.
2. BranchCreate a feature branch from the correct base branch.
3. CodeModify the application and test locally.
4. ReviewUse Check for Modifications and Diff.
5. CommitCreate a small, meaningful commit.
6. Pull/RebaseUpdate your branch before pushing according to the team's workflow.
7. PushPush the feature branch to origin.
8. Pull RequestCreate the Pull/Merge Request in your Git hosting platform.
9. ReleaseFor releases, create a tag from the approved release commit and push the tag.

20. Important TortoiseGit Tips

TortoiseGit / ActionWindows procedure / explanation
Use meaningful branchesExamples: feature/login-api, bugfix/otp-expiry, release/1.0.x, hotfix/security-fix.
Use meaningful commitsExamples: Add OTP expiration validation; Fix JWT refresh-token validation.
Pull before workStart work from an updated base branch.
Review before pushAlways inspect the diff and changed files before pushing.
Be careful with force pushAvoid force-pushing shared branches. If rewriting your own remote branch is explicitly approved, understand the impact first.
Protect main/releasePrefer Pull/Merge Requests and branch protection for shared branches.
Note: TortoiseGit menu names can vary slightly by installed version and configuration. The Git command shown is the conceptual command-line equivalent; always review the operation before executing destructive actions such as reset, clean, or force push.