• Linux
  • apache
  • centos
  • Git版本管理
  • Linux基本命令
  • linux配置与优化
  • Nginx
  • PHP
  • Redis
  • Supervisor
  • Swoole
  • windows
  • THINKPHP
  • 开发者手册
  • Chat GPT / Open Ai
  • github上的版本和本地版本冲突的解决方法 情景: 在github上创建项目,然后本地git init 然后没有git pull -f --all 然后git add .  | git commit -am "init" 导致github上的版本里有readme文件和本地版本冲突,下面给出冲突原因:  提交到远程一般 git remote add origin ...
    日期:2022-07-29 浏览:727次 bob手机版网页登录: 0 阅读全文
    1.删除远程库文件,但本地保留该文件 git rm --cached xxx git commit -m "remove file from remote" git push -u origin master 2.删除远程库文件夹,但本地保留该文件夹 git rm --cached -r xxx git commit&nb...
    日期:2022-07-21 浏览:577次 bob手机版网页登录: 0 阅读全文
    fatal: could not read Username for 'http:// 解决方案 在部署drone(CICD软件)后,触发提交时,drone-runner执行拉取仓库代码(在自己部署的gogs上)时出现该问题 Initialized empty Git repository in /drone/src/.git/ + git fetch origin +refs/heads/master: ...
    日期:2022-07-21 浏览:3402次 bob手机版网页登录: 0 阅读全文
    简单的代码提交流程 git status 查看工作区代码相对于暂存区的差别 git add . 将当前目录下修改的所有代码从工作区添加到暂存区 . 代表当前目录 git commit -m ‘注释’ 将缓存区内容添加到本地仓库 git pull origin master先将远程仓库master中的信息同步到本地仓库master中 git push origin master 将本地版本...
    日期:2022-04-18 浏览:806次 bob手机版网页登录: 0 阅读全文