- 初始化仓库
git init
- 克隆仓库
git clone http://example.com/user/repo.git
- 拉取仓库
git pull http://example.com/user/repo.git
- 进入项目
cd repo
- 切换分支
git checkout origin/lx
- 拉取当前分支
git pull lx
- 切换到远程的其他分支
git checkout -b lx-test origin/lx-test
- 强制覆盖更新
git fetch --all
git reset --hard origin/lx-test
git pull
2884

被折叠的 条评论
为什么被折叠?



