如何在同一台电脑上使用多个GitHub账号

如何在同一台电脑上使用多个GitHub账号 我们知道,如果使用ssh key去绑定GitHub账号,那么每次从同一台电脑上push代码的时候就不...

July 14, 2023 · 3 分钟 · 1240 字 · swimminghao

git reset放弃修改&放弃增加文件

git reset放弃修改&放弃增加文件 1. 本地修改了一堆文件(并没有使用git add到暂存区),想放弃修改。 单个文件/文件夹: $ git checkout -- filename 所...

February 28, 2022 · 1 分钟 · 416 字 · swimminghao

git.html

githtml {overflow-x: initial !important;}:root { --bg-color:#ffffff; --text-color:#333333; --select-text-bg-color:#B5D6FC; --select-text-font-color:auto; --monospace:"Lucida Console",Consolas,"Courier",monospace; } html { font-size: 14px; background-color: var(--bg-color); color: var(--text-color); font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; } body { margin: 0px; padding: 0px; height: auto; bottom: 0px; top: 0px; left: 0px; right: 0px; font-size: 1rem; line-height: 1.42857; overflow-x: hidden; background: inherit; tab-size: 4; } iframe { margin: auto; } a.url { word-break: break-all; } a:active, a:hover { outline:...

February 28, 2022 · 6 分钟 · 2919 字 · swimminghao

github 上传大文件100MB姿势

github 上传大文件100MB姿势 具体就是安装git-lfs,先下载,然后就是一顿操作: 先在web建立一个空仓库 然后建立跟仓库名一样的文件夹,并执行...

February 28, 2022 · 1 分钟 · 265 字 · swimminghao

git对比两个分支

git 对比两个分支差异 1. 显示出branch1和branch2中差异的部分 git diff branch1 branch2 --stat 2. 显示指定文件的详细差异 git diff branch1 branch2 具体文件路径 3. 显示出所有有差异...

February 28, 2022 · 1 分钟 · 300 字 · swimminghao