![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
GIT
0c4d
这个作者很懒,什么都没留下…
展开
-
git分支操作
分支创建分支git branch branch_name切换分支git checkout branch_name切换代码git pull origin branch_name提交分支代码git push origin branch_name删除分支git branch -d branch_name查看所有分支git branch -a工作区、缓存区...原创 2021-04-27 11:37:38 · 58 阅读 · 0 评论 -
git 切换仓库
git initgit add .git commit -m 'first commit'git remote -v//如果有,则删掉已存在的远程仓库git remote rm origin//如果没有仓库配置,则增加远程仓库地址配置git remote add origin git@gitee:account/repo.git原创 2021-04-27 10:31:24 · 363 阅读 · 0 评论 -
Git 免登录克隆
简介Git 在使用时,每次克隆,或者更新操作,都需要输入账户、密码,这给我们工作带来了一些不便。比如自动化部署项目,需要服务器自动检出代码,但是账户密码输入带来了一些问题,这里就来处理一下这个账户、密码输入问题。登录gitee个人配置,有个个人公钥,项目管理页面。点击公钥管理,这里添加公钥,我们即可无密码直接检出代码。密钥生成这里使用git 自带bash工具,点击运行输入~/.sshssh-keygen -t rsa -b 0496 -C "123@123.com"原创 2020-09-14 11:35:44 · 874 阅读 · 0 评论