Using Branch in Git

Categories: Development Notes; Tagged with: ; @ May 4th, 2014 10:29

List branch names

git branch

View Branches

git show-branch

Create new branch

git branch liguoliang-com

GDEV SimpleWordPressTheme # git show-branch
! [liguoliang-com] changed version
* [master] changed version

+* [liguoliang-com] changed version

Switch Branch

GDEV SimpleWordPressTheme # git checkout liguoliang-com

GDEV SimpleWordPressTheme # git status
# On branch liguoliang-com

Push new branch to Remote Server. e.g. Github:

GDEV SimpleWordPressTheme # git push origin liguoliang-com

<->



// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.