User guide
Installation, initialization, then day-to-day work: features, releases and hotfixes.
1. Installation
- Close Visual Studio completely (all windows). Otherwise the installer closes without installing anything.
- Double-click
GitFlow.VSExtension.vsix. Depending on the Visual Studio version, the VSIX Installer and then the Visual Studio Installer take over: confirm until the end. - Restart Visual Studio. The menu appears, and the extension is listed in .
From the command line:
& "C:\Program Files\Microsoft Visual Studio\18\Enterprise\Common7\IDE\VSIXInstaller.exe" GitFlow.VSExtension.vsix
Same procedure with the new .vsix. To uninstall: , then Uninstall.
2. The GitFlow window
Open it from (or ). It opens as a tab next to Git Changes and refreshes on its own: when a file is saved, when the branch changes, when another solution is opened.
currentPushFinish…
What the window shows
- Repository state: current branch and its type, uncommitted changes or merge in progress, commits ahead of or behind origin.
- Commit: changed files and a suggested message (details).
- Start a branch: type, prefix, name. For a release or a hotfix, the next version is pre-filled.
- Branches in progress, grouped by type, with Push and Finish… on each row: you don't need to be on a branch to finish it.
- The current and already merged badges (a branch merged by hand into all its targets).
- On a release/ branch, the reminder "bug fixes, docs and release tasks only".
- The Pull requests section appears if you use Pull Request mode.
3. Initializing a repository
On a repository that has never used GitFlow, the window offers Initialize GitFlow…. The settings screen opens, pre-filled:
- with the existing git-flow configuration if the repository already has one (it is kept as is);
- otherwise with your "All my repositories" settings;
- otherwise with the standard values:
master,develop,feature/,release/,hotfix/, empty tag prefix.
When you confirm, the develop branch is created from master if it doesn't exist (or from origin/develop if it exists on the server), and the configuration is written to the repository (standard gitflow.* keys, compatible with other git-flow tools).
On an empty repository, make a first commit on master first.
4. A feature
A feature starts from develop and is merged back into it. It never touches master.
Start
- In Start a branch, choose Feature and type a name, for example
loginorABC-123-login. - Start: the feature/login branch is created from develop and checked out.
Possible refusals, with an explicit message: uncommitted changes, name invalid for git, branch already exists (locally or on origin), merge in progress.
Push (optional)
Push sends the branch to origin (git push -u origin feature/login) to share it or back it up. Only commits are pushed: commit first.
Finish
• merge --no-ff into develop
• delete the local branch
Finish… opens this dialog. With local merge (the default mode):
--no-ffmerge of the feature into develop, so the branch stays visible in the history;- deletion of the local branch with
git branch -d, which git refuses if it is not merged; - optionally: push of develop to origin, deletion of the branch on origin;
- back to develop.
Both checkboxes can be pre-checked in the settings.
5. Committing
The Commit section of the window lists the changed files (A added, M modified, D deleted, R renamed) and suggests a message built from git only, with no AI, always the same for the same changes.
Update 2 files
Added (1):
- src/Login.cs
Modified (1):
- README.md (+2 -1)
Refs: ABC-12 ← tickets found in the branch name (ABC-123, #42)
- What gets committed: if some files are already staged (
git add), only those; otherwise everything, new files included, like "Commit All". - The message stays editable: once you edit it, it is no longer replaced. Regenerate message brings back the suggestion.
- Rewrite the first line for large commits: the generator knows which files changed, not why.
- Files appear once saved (Ctrl+S): git doesn't see changes that are still only in the editor.
On master (no direct commits to production: start a feature or a hotfix) and during a conflicted merge (committing would conclude the merge instead of the Finish).
6. A release
When enough features are in develop, a release prepares them for production. On the release branch: bug fixes, documentation and release tasks only, no new features.
- Start a branch > Release: the next version is suggested by incrementing the minor of the latest tag on master (
1.4.1→1.5.0). Editable. - If develop has nothing new since the last release, a warning is shown: the release would be identical to the previous one. You can continue anyway.
- Make your final adjustments (version number, changelog…) and commit.
- Finish…: the tag message is suggested (
Release 1.5.0) and can be edited.
Finishing a release, in this order:
--no-ffmerge into master;- annotated tag
1.5.0on master (orv1.5.0with thevprefix); --no-ffmerge into develop;- deletion of the branch, back to develop.
Check "Push" to send master, develop and the tag in one go.
7. A hotfix
To fix production, the hotfix is the only branch that starts directly from master.
- Start a branch > Hotfix: suggested version = patch of the latest tag + 1 (
1.5.0→1.5.1). - Fix, commit.
- Finish…: merge into master + tag, then merge into develop.
If a release/ branch is in progress, the hotfix is merged into master and then into the release instead of develop: the fix reaches develop when the release is finished.
Only one release and one hotfix can be in progress at a time.
8. Conflicts and resuming
If a merge of the Finish hits a conflict, the extension stops immediately and deletes nothing. The message lists the conflicted files, and the repository stays in the merge state.
- Resolve the conflicts (Visual Studio merge editor or by hand) and save.
- Mark the files as resolved: Stage in Git Changes, or
git add <file>. - Don't commit yourself: click Resume finish… in the window (or run Finish… again).
The Finish concludes the merge, skips the steps already done (merge into master, tag) and completes the rest.
The branch shows the already merged badge. Finish… on its row creates the tag if it is missing, then deletes the branch.
To cancel everything instead: git merge --abort.
9. Settings
Settings button of the window, or
- Scope: This repository (local git config) or All my repositories (global git config, defaults for new repositories).
- Only naming is configurable, not the behavior of the flow.
- Tag prefix: empty by default (tags
1.4.0), orv(tagsv1.4.0). - Live validation: empty or duplicate prefix, production = development. Names refused by git are reported when saving, and nothing is written.
- Changing a prefix does not rename existing branches: a warning lists them before saving.
- Company Azure DevOps server: if the origin URL is not recognised, check "origin is an Azure DevOps server" (details).
All keys are described in the reference.
10. Menu commands
Everything is also available from , on the open solution:
| Command | Effect |
|---|---|
| GitFlow Window | Opens the window described above. |
| Start Feature / Release / Hotfix… | Asks for the name (version pre-filled for release/hotfix) and creates the branch. |
| Finish Current Branch… | Finishes the current branch, or resumes a Finish stopped on a conflict. |
| Push Current Branch | git push -u origin <branch>. |
| GitFlow Settings… | Settings screen (or initialization screen if the repository is not initialized). |
| Initialize GitFlow… | Initialization screen. |