#Git 使用笔记
克隆本分支,深度为1
1 | git clone -b deploy_online --depth=1 git@github.com:whllhw/whllhw.github.io |
当已经存在.git文件夹时可以使用
1 | git branch -r # 显示远程分支 |
推送到远程其他分支时
1 | git remote add origin git@github.com:whllhw/whllhw.github.io #添加远程仓库 |
克隆本分支,深度为1
1 | git clone -b deploy_online --depth=1 git@github.com:whllhw/whllhw.github.io |
当已经存在.git文件夹时可以使用
1 | git branch -r # 显示远程分支 |
推送到远程其他分支时
1 | git remote add origin git@github.com:whllhw/whllhw.github.io #添加远程仓库 |