Git

How to config git on Ubuntu

Git command Branch operation Background: We often want the copy the master branch(or other branch) to develop a new function. $git checkout master //Change to the master branch or which branch you want to copy $git pull //从远端拉取最新版本 $git checkout -b NewBranch //Switched to a new branch 'NewBranch' $git push origin NewBranch //新建分支NewBranch到远端

Git不同场景常用命令

Git子模块:仓库中包含另外一个仓库 场景 在工作的项目中需要包含另外的项目,这个时候我们就需要引出其他的项目,但是我们希望在引入的项目变化的时候,我们也可以很快的合并到我们现有的分支中。