Development Best Practices
  • Home
  • Clean Code
  • Apex
    • Naming Conventions
    • Triggers
    • Unit Testing
    • Principles
      • KISS
      • DRY
      • Single Responsibility
      • Open/Closed
      • YAGNI
    • Patterns
    • SOQL
    • Exception Handling
    • Magic Strings
  • Lightning Components
    • Aura
    • LWC
  • Automation
    • Process Builder
  • Salesforce DX and VSCode
  • Git Source Control
    • Install Git
    • Using Git
    • Development Workflow
      • The Rules
    • Feature Branch Workflow
Powered by GitBook
On this page
  • Overview
  • Installing Git
  • Installing Git-Flow
  • Install Git with Sourcetree
  1. Git Source Control

Install Git

PreviousGit Source ControlNextUsing Git

Last updated 5 years ago

Overview

There are two options:

  1. Install Git and Git Flow manually, and use Git via the command line or

  2. Install Sourcefree app which comes with Git and Git-Flow builtin

Installing Git

  1. Download

  2. Run the installer, default options are fine

  3. Open a Command Prompt (or Git Bash)

  4. Run the following commands to configure your Git username and email

$ git config --global user.name "Firstname Lastname"
$ git config --global user.email "name@example.com"

Installing Git-Flow

Using Cygwin for windows:

wget -q -O - --no-check-certificate https://raw.github.com/petervanderdoes/gitflow-avh/develop/contrib/gitflow-installer.sh install stable | bash

Install Git with Sourcetree

Sourcetree has both Git and Git-Flow builtin.

  1. Run the installer

Download

Git for Windows
Sourcetree