随笔分类 - Git
摘要:使用git log命令 2023-11-01 开始时间 2023-12-30 结束时间 --no-merges 过滤到合并的commit路径 输出到当前目录中的1.txt中 git log --since="2023-11-01" --until="2023-12-30" --name-only -
阅读全文
摘要:一、Gitlab 的备份目录路径设置 Gitlab 的备份目录可以在 Gitlab 的配置文件中设置: 配置文件路径:```vim /etc/gitlab/gitlab.rb``` 修改如下: ``` gitlab_rails['backup_path'] = "/var/opt/gitlab/ba
阅读全文
摘要:配置用户名和邮箱: git config --global user.name "username" git config --global user.email "useremail@qq.com" 清除配置中纪录的用户名和密码,下次提交代码时会让重新输入账号密码: git config --sy
阅读全文
摘要://清除Git配置,在克隆的时候需要重新输入账号密码 git config --system --unset credential.helper 重新生成秘钥 输入 ssh-keygen -t rsa -C "youremail@youremail.com"
阅读全文
摘要:清除本地账号 git config --system --unset credential.helper 将账号信息添加到缓存文件中,在输入命令之后还是需要在输入一次账号密码 以后就不用了。 git config --global credential.helper wincred 也可以设置缓存时
阅读全文
摘要:-- 删除命令 #git rebase -i commitid ####输入此命令会出现 -- 会打开一个文件 使用vi方式 ,文件开头会出现commitid之前的提交记录 -- 按照 【pick commitid 提交备注】的方式书写 ,而对于要删除的指定commitid提交 可以直接将pick
阅读全文
摘要:GitHub创建仓库 创建仓库,下载到本地 git clone https://github.com/example.git Composer.json 文件编辑 初始化 文件 composer init { "name": "your-vendor-name/package-name", // 你
阅读全文
摘要:如果是在其他电脑上使用,还可以使用缓存期进行设置到期时间 单位是秒,7200秒(2个小时)后失效
阅读全文
摘要:error: The following untracked working tree files would be overwritten by merge: access_token.php jsapi_ticket.php Please move or remove them before y
阅读全文
摘要:Git的使用 git pull 出现如下错误: There is no tracking information for the current branch. Please specify which branch you want to merge with. If you wish to se
阅读全文
摘要:git 撤销commit 1.回退版本 只保留源码 回退commit和index信息 git reset mixed 2.回退某个版本 只回退commit的信息 可以直接再次commit git reset soft 3.彻底回退到某个版本 本地源码会变为上一次版本的内容 git reset har
阅读全文
摘要:把本地代码和远程相关联 初始化用户邮箱: git config --global user.name 'Your Name' git condig --global user.email 'email@example.com' 1,git clone ‘地址’ 重名文件 克隆代码 2,git ini
阅读全文

浙公网安备 33010602011771号