Skip to main content

Git & Version Control

Welcome to the Git documentation for the NetSuite development team. This section covers everything you need to know about using Git with VS Code for effective team collaboration.

What This Section Covers

Getting Started

Workflows & Practice

Reference


Branch Strategy Overview

Our team uses the following branch structure:

main ─────●─────────────────────────●───────●─── (Production)
│ │ ↑
│ hotfix/fix │
│ └───────┘


develop ──●────●────●────●────●────●────●─────── (Integration)
│ ↑ │ ↑
│ │ │ │
feature/NS-123 bugfix/NS-456
└────┘ └────┘

Branch Types

BranchPurposeRule
mainProduction code - what's live in NetSuiteNEVER push directly
developIntegration testing - combines everyone's workMerge via Pull Request only
feature/*Your working branches for new featuresCreate from develop, merge back to develop
bugfix/*Your working branches for bug fixesCreate from develop, merge back to develop
hotfix/*Emergency production fixesCreate from main, merge to main AND develop

Quick Start

First Time Setup

  1. Install Git - Download from git-scm.com
  2. Configure your identity:
    git config --global user.name "Your Full Name"
    git config --global user.email "your.email@company.com"
  3. Clone the repository - See Onboarding Guide for detailed steps

Daily Workflow

# Start of day - get latest code
git checkout develop
git pull origin develop

# Create your feature branch
git checkout -b feature/vendor-NS123-description

# Work, commit, push
git add .
git commit -m "[NS-123] Your change description"
git push -u origin feature/vendor-NS123-description

# Create Pull Request on GitHub

Golden Rules

  1. NEVER push directly to main or develop
  2. ALWAYS pull before starting new work
  3. ALWAYS create a branch for your changes
  4. Commit often with meaningful messages
  5. Push your branch daily (backup!)
  6. When in doubt, ASK before acting!

Need Help?