Git


 
 1. 获取项目(克隆): Git repository:
        git clone -b develop ssh://git@ ip+端口 /wuxi-biosciences.git
 2. 新建分支 :git checkout -b 分支名称
    切换分支 : git checkout 分支名称
    查看分支:  git branch
    删除分支:  git branch -d 分支名称
 3.
    分支下面只能    commit -a -m "注释"    
    然后切到主分支,git checkout 主分支名
    更新到develop: git pull origin 主分支名
    合并到主分支且  commit:git merge --no-ff  分支名称
    提交主分支的修改  git push

原文地址:https://www.cnblogs.com/legend-song/p/4011571.html