Sourcetree Cheat Sheet

  • Video created by Atlassian for the course 'Version Control with Git'. This module covers topics on how teams work with Git. Git is flexible enough to work with many types of projects and teams. The better you understand Git's capabilities, the.
  • SourceTree is a powerful Git and Mercurial desktop client for developers on Mac or Windows. In this tutorial, we're using OSX 10.9.5 and SourceTree 2.0.4. Docker Cheat Sheet Docker Q & A Kubernetes Q & A - Part I Kubernetes Q & A - Part II Docker - Run a React app in a docker.

Git flow init git flow remove config sourcetree git flow install git-flow mac git flow github how to uninitialize git flow sourcetree workflow git flow cheat sheet pdf. In my team we are migrating from svn to git and we have agreed upon embracing the git-flow flow. I've been playing around a while with SourceTree and the Git-Flow extension. Should I use GitKraken or SourceTree for Git? This handy flowchart asks the important, probing questions that get to the bottom of who you really are, and whether you should be using GitKraken, GitKraken Pro, or SourceTree for your Git workflow.

SourceTree General Setup¶


In order to use SourceTree in Windows PuTTY should be installed and your SSH key loaded into pageant(see Create SSH key on Microsoft Windows).


  1. Download SourceTree at
  2. Execute the installer

Basic Settings¶

First of all set the basic settings for your Git configuration by clicking on the settings button in SourceTree andadd your name, email and SSH Key. Make sure the option “SSH Client” is set to PuTTY/Plink.


To clone a new repository click on “Clone/New”.

Enter the URL to your repository and the path to your local folder. For easier access to your repositoriesleave the bookmark check box checked.

Click on Clone. Checking out the full TYPO3 Core repository might take some time, please be patient.

Automatic links to Forge and Gerrit¶

The commit messages contain a reference to the corresponding Forge ticket and a Gerrit review link. To get directlinks from SourceTree choose the Core repository bookmark on the left and then click on the Settings button in thetop bar. Choose tab “Advanced” and click “Add” at the section for “Commit text links”:

Choose “Replacement type:” “Other” and add

  • Regex pattern: (#)+((?:[0-9]*)?)
  • Link to URL:$2

Repeat the steps for the Gerrit links and add

  • Regex pattern: (*)
  • Link to URL: $1

Acronis true image free edition. After adding these two settings your commit history now shows links:

Sourcetree cheat sheet pdf

Reviewing and testing patches¶

Update the repository¶

Before applying a patch you should update the repository to its latest state. Press the pull button from the main buttonbar:

Then click OK:


First visit the page of the patch in Gerrit. From the Download menu, choose the copy button after the ‘Cherry Pick’ line.

The next step has to be done via the command line. Open git bash by pressing “Terminal” and paste the copied line withthe ‘Ins’ button:

The patch is now applied and you can start testing.

Creating patches¶

Commit hook¶

In each folder that contains a repository you need to execute the following command to install a Git hook which adds a uniqueChange-Id to the commit message (and performs a few checks). Choose the repository from your bookmarks and click “Terminal”to open a git bash for that repository. Copy the following command to the bash and execute it:

Sourcetree Cheat Sheet Printable


You can read about the why and where of the pre-commit hook here.

Setup for pushing to Gerrit¶

In the Git Bash window (click Terminal), enter the following commands to set that you push to Gerrit instead of the TYPO3 repository directly.

Create a branch¶

It’s easier to undo all the changes in a patch if you create a branch for it. Click on the branch button and entera name for your new branch, then click “Create Branch”.

Now start coding and commit your changes (By pressing the “Commit” button). Make sure your commit message is writtenaccording to the >>>rules for the commit message<<< and click OK.

Your changes are now stored locally in a separate branch.

Send the patch to Gerrit¶

Click the “Push” button to open the push dialog.

Check the checkbox in front of your feature branch. As remote branch add “refs/for/master” - which will create a new patchsetfor master. If you want to create patches for older branches use ‘refs/for/<branchName>’, for example ‘refs/for/TYPO3_6-2’.Be aware that you have to fix a bug in master first before it can go to older branches.

Now click ok. You should get a Gerrit link to your new change in the resulting output.

Sourcetree Cheat Sheet Template

Cleaning up¶

To get back to master just click on it at the “Branches” section. If you want to delete your feature branch,right click on it and choose “Delete”.

How to reset the git-flow configuration in SourceTree?

git flow init
git flow remove config
sourcetree git flow
install git-flow mac
git flow github
how to uninitialize git flow
sourcetree workflow
git flow cheat sheet pdf

In my team we are migrating from svn to git and we have agreed upon embracing the git-flow flow. I've been playing around a while with SourceTree and the Git-Flow extension. Now, we have decided that the develop branch will be called development/current instead, but I do not find in the SourceTree UI where to change the Git-Flow configuration.

Is it possible, once initialized, to change the Git-Flow configuration for a given repository?

No, it is not possible (at least not at SourceTree

It is possible however to do it manually by editing the file /.git/config in your git repository.

The Git-Flow extension adds it s configuration in the following two sections, which can be freely edited.


Sourcetree Cheat Sheets

How can I reset the prefixes (/feature, /hotfix, git/config file inside your repo. Look for the section marked [gitflow 'prefix'], and modify the values on the right hand side to change them. Make sure you keep the � I am using SourceTree v3.0.8 in Windows. In SourceTree, when my current branch is 'develop' and I click on Git-flow in the toolbar, the pop-up dialog thinks develop is a feature branch and offers only to either 'Finish Feature' or 'Other Action' (ie, it doesn't offer to 'Start New Feature').

In SourceTree 2.x it is easy to edit your GitFlow.

  1. Click Settings if you're using Mac (Repository - Repository Settings in Windows)
  2. Select Advanced Tab
  3. Click Edit Config File ..

Smart branching with SourceTree and Git-flow, So if you haven't set up git-flow on this repo yet, it'll help you do that by default. If you're on the development branch, it will default to starting a� J'ai joué avec SourceTree et l'extension Git-Flow. Maintenant, nous avons décidé que la branche develop s'appellera plutôt development/current, mais je ne trouve pas dans L'interface utilisateur de SourceTree où modifier la configuration Git-Flow.

You have to use git flow init -f

How to Make a Git Flow Using SourceTree, Hello fellas, this is My First Story at Medium. Today, I want to share how to make a simple Git Flow Using SourceTree. So, Did you realize that� To create standard branches of Git Work Flow, we need click 'Git Flow' on the top menu. The we get the following: We get the git that looks like this: Press 'Git Flow' again: Select 'Start a New Feature', and type in the name of the feature: After two commits to feature-A: Press 'Git Flow' again: Now the feature-A branch has been merged into

Sourcetree Git Cheat Sheet

Tutorial Git and GitHub : Source Tree III (Git Workflow), Tutorial GIT and GitHub, Branching & Merging, Source Tree, Branching & Merging, Git Workflow. via SourceTree III : Git Work Flow � Git/GitHub via SourceTree IV : Git Reset � Git Git/GitHub plugins, SSH keys configuration, and Fork/Clone This is a very rare problem to happen and is usually due to a config being set outside of SourceTree, or some system environment setting that could be causing issues with other configurations leading SourceTree to crash. Please note that wiping the preferences will mean you will lose your bookmarks and view settings.

git-flow cheatsheet, The macOS/Windows Client Sourcetree is an excellent git gui and provides git- flow Git flow needs to be initialized in order to customize your project setup. I' ve been in the habit of either adding revert commits to the release branch or� Finally, Git looks for configuration values in the configuration file in the Git directory (.git/config) of whatever repository you’re currently using. These values are specific to that single repository, and represent passing the --local option to git config. If you don’t specify which level you want to work with, this is the default.

How to use git-flow in SourceTree, Install git-flow. Git-flow is a GIT extension that helps you effectively manage branching in GIT. It follows a branching model (or protocol) set up by� SourceTree should now be reconfigured to the settings the user set. If a user wants to delete saved bookmarks/accounts/tabs, just search for it in the file, and then remove the line that saves it. If a user would like to revert SourceTree back to its very clean state without any configuration set, user can wipe off all preferences by following

  • @RyuX51, a picture is worth a thousand words, no doubts
  • Thank you for your answer!

Sourcetree Cheat Sheet Pdf

Hot Questions