User Tools

Site Tools


info:code:git

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

Delete Branch

git branch -d BRANCH

Delete Remote Branch

git push origin -d 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.1508414822.txt.gz · Last modified: 2017-10-19 14:07 by andunix