Git Development Workflow
This is a first draft, very basic guide how to get GIT setup on windows or osx, and commit code to TEST.
Documentation:
WINDOWS
****
Install msysgit
- Download latest version from http://code.google.com/p/msysgit/downloads/list (ie: Git-1.7.4-preview20110204.exe)
- check “Git Bash Here”
- check “Git GUI Here”
Run Git from the Windows Command Prompt
- checkout as-is, commit unix-style line endings
Install tortoise
- OpenSSH, git default ssh client
Before making commits, it is useful to add your name and email:
- git config —global user.name “Your Name”
- git config —global user.email “yourmail@domain.tld”
MAC OSX
****
Install Git for OSX:
- Grab the latest git installer for your version of osx from
http://code.google.com/p/git-osx-installer/downloads/listGit for OSX - Run the contained pkg
- If you want git to be accessible via the PATH and MANPATH variables for non-terminal programs, run the included shell script.
Generate an SSH Key:
- Follow the directions here:
http://help.github.com/mac-key-setup/Mac Key Setup
Setup your git global configs:
- Follow the directions here:
http://help.github.com/git-email-settings/Email Settings
- WORKFLOW ****
git checkout DEVgit checkout -b <feature_name>
git commit -a -m "updating README.txt to include basic git instructions"git push origin DEV (or feature_name if working on a feature branch)if working on feature branch:
git checkout DEVgit merge --no-ff <feature_name>git push
Then:
git checkout TESTgit merge DEVgit push