git 使用日记

  • git 克隆远程指定分支
    命令如下:

git clone -b [remote repository address]
主要就是在clone的时候,后面添加branch的信息。

附:GIT列出远程分支信息
git branch -r

  • git记住账号密码
    命令如下:

git config --global credential.helper store

你可能感兴趣的:(git 使用日记)