
git
金士顿
这个作者很懒,什么都没留下…
展开
-
git修改注释
转载地址:https://www.jianshu.com/p/098d85a58bf1。转载 2022-11-15 13:22:03 · 114 阅读 · 0 评论 -
git create a new repository on the command line
【代码】git create a new repository on the command line。原创 2022-09-16 09:45:58 · 270 阅读 · 0 评论 -
git最新token创建远程仓库
git remote add origin https://你的token@github.com/用户名/仓库名.git。token的生成方法参见。原创 2022-08-18 15:28:35 · 319 阅读 · 0 评论 -
解决 remote Support for password authentication was removed on August 13, 2021.
转载地址:https://blog.youkuaiyun.com/qq_50840738/article/details/125087816。转载 2022-08-12 11:32:19 · 213 阅读 · 0 评论 -
【突发】解决remote: Support for password authentication was removed on August 13, 2021. Please use a perso
转载地址:https://blog.youkuaiyun.com/yjw123456/article/details/119696726转载 2022-07-12 14:08:52 · 120 阅读 · 0 评论 -
使用git小乌龟回滚版本
参考博客:https://blog.youkuaiyun.com/qq_27409289/article/details/71418363?depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1&utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-11、首先找到log,找到日志,定位到你要回滚到的那个版本,其次右击找到如转载 2021-03-02 09:23:21 · 1468 阅读 · 0 评论 -
第一次使用Git上传本地项目到github上
转载地址:https://www.cnblogs.com/sdcs/p/8270029.html对于程序原来说都听说过GitHub,GitHub有许多开源的的项目和一些前沿的技术。因为自己在刚刚开始使用Git把自己写的一些小dome放到GitHub上遇到许多的坑,这么长时间过去了,想对第一次使用Git上传代码做一下总结,以免使自己忘记。1.下载Git软件:https://git-scm.com/downloads,据说ios自带的有git软件,这个我就不太清楚了。2.下载之后安装就很简单了,一路下一步转载 2021-02-26 10:40:46 · 97 阅读 · 0 评论 -
git撤销commit
请参考该文章:http://www.cnblogs.com/ningkyolei/p/5026011.html 场景:不小心commit了一个不应该commit的修改,但是还没有push,想撤销那个commit 命令:a)git logb)git reset --hard commit_id 具体步骤如下:1.模拟commit一个不应该commit的修...转载 2018-11-27 15:20:44 · 151 阅读 · 0 评论 -
git revert 用法
git revert 撤销 某次操作,此次操作之前和之后的commit和history都会保留,并且把这次撤销作为一次最新的提交 * git revert HEAD 撤销前一次 commit * git revert HEAD^ 撤销前前一次 commit * git revert commit (比如:...转载 2018-11-30 11:28:35 · 192 阅读 · 0 评论 -
git commit --amend两种用法
一、如果已经push到远端服务器,想修改已经提交过的commit信息1.保存:Ctrl + o; 回车 ;退出:Ctrl + x# git commit --amend2.重新提交gerrit审批# git push --no-thin origin HEAD:refs/for/master二、如果已经push到远端服务器,有漏掉的test.txt文件想提交到上一次的commi...转载 2018-11-16 14:16:04 · 18601 阅读 · 0 评论 -
Git撤销&回滚操作
开发过程中,你肯定会遇到这样的场景:场景一: 糟了,我刚把不想要的代码,commit到本地仓库中了,但是还没有做push操作!场景二: 彻底完了,刚线上更新的代码出现问题了,需要还原这次提交的代码!场景三: 刚才我发现之前的某次提交太愚蠢了,现在想要干掉它!撤销上述场景一,在未进行git push前的所有操作,都是在“本地仓库”中执行的。我们暂且将...转载 2018-10-30 09:33:06 · 149 阅读 · 0 评论 -
如何通过git把本地的代码上传到服务器
注意:安装的前提条件是配置好Git的相关环境或者安装好git.exe,此处不再重点提及上传的步骤:(本文采用git 命令界面进行操作)( git config --global user.email "you@example.com"git config --global user.name "Your Name")实现登陆1.进入本地的项目目录,右键“Git Bash here”,调出g...转载 2018-10-23 13:57:49 · 8332 阅读 · 2 评论 -
Git免登录,不需重复输入账号和密码
linux下在~/下, touch创建文件 .git-credentials:touch .git-credentials# 用vim编辑此文件,vim .git-credentials#输入内容格式https://username:password@github.com2. 在终端下执行 git config --global credential.helper s...转载 2018-10-25 10:25:37 · 738 阅读 · 0 评论