User Tools

Site Tools


info:code:git
Please note, that this is an old archived version of this site. Check out the new version at andunix.net!

This is an old revision of the document!


Git

Basics

Init Repository

Standard:

git init [DIR]

Bare:

git init --bare [DIR]

Log

See commits between branches:

git log master..develop

Branches

List Branches

git branch

Switch Branch

git checkout BRANCH

Subversion

Update

git svn fetch

Git Flow

Init

git flow init

Feature

git flow feature start FEATURE
git flow feature finish FEATURE

Release

git flow release start RELEASE [BASE] 
git flow release finish RELEASE

Hotfix

git flow hotfix start VERSION [BASENAME]
git flow hotfix finish VERSION

Diff

If you only want the changes files between branches, you can user this:

git diff --name-status branchA..branchB
info/code/git.1504818037.txt.gz · Last modified: 2017-09-07 21:00 by andunix