- 初始化仓库
git init
- 克隆仓库
git clone http://example.com/user/repo.git
- 拉取仓库
git pull http://example.com/user/repo.git
- 进入项目
cd repo
- 切换分支
git checkout lx
- 拉取当前分支
git pull lx
git init
git clone http://example.com/user/repo.git
git pull http://example.com/user/repo.git
cd repo
git checkout lx
git pull lx