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
<<Version Control with Git>> Notes: Git Basic Object Types <->
// Proudly powered by Apache, PHP, MySQL, WordPress, Bootstrap, etc,.