随笔分类 - git
git 常用命令记录
摘要:##<font color =deepSkyBlue>git拉取</font> ###<font color =DarkTurquoise>git拉取代码到新分支</font> ``` # 可以把远程某各分支remote_branch_name拉去到本地的branch_name下,如果没有branc
阅读全文
摘要:#git 丢弃修改 ##未add(工作区) 1.git restore . 或者git restore test.file; 2.git checkout -- * ##已add(暂存区) 1.git restore --stage . 将文件从暂存区移到工作区,修改不会消失 2.git reset
阅读全文
摘要:#git初始化1 1.创建远程仓库 2.将id_rsa.pub的内容添加到仓库settings-deploy keys 3.创建本地文件夹 4.git init 5.git remote add origin [url] github如果连接不上,可以使用https://@github.com/ 6
阅读全文