git init 初始化一个新的Git仓库
git remote add origin ssh://git@192.xxx.xx.xx/test.git将远程仓库添加为Git的远程源,使用别名 origin
:
拉取远程分支xxxx
git fetch xxxx
基于远程分支创建并切换到本地分支:
git checkout -b xxxx origin/xxxx
git init 初始化一个新的Git仓库
git remote add origin ssh://git@192.xxx.xx.xx/test.git将远程仓库添加为Git的远程源,使用别名 origin
:
拉取远程分支xxxx
git fetch xxxx
基于远程分支创建并切换到本地分支:
git checkout -b xxxx origin/xxxx