
Git
Rudon滨海渔村
我就是我,简单的我。
展开
-
CentOS 7安装GitLab、创建用户、创建Repo、拉取推送
gitlab全球出名,包含免费的社区版CE、收费的企业版EE,在国内安装速度一般;gitlab极狐版是中国特供版,用起来就跟CE一样,推荐国内使用~原创 2023-04-19 03:34:08 · 1127 阅读 · 0 评论 -
git团队合作 - branch分支的使用、主分支合并、冲突处理方案
组长检查b0分支运行情况,没问题的话再切到master,把b0合并到master,主分支完成开发。b0 次要分支,组长专用,合并其他的次分支,解决冲突后合并到master主分支;组长切换各个分支,分别git pull,再统一切到b0特殊分支,组长再切到b1, 把master同步到b1,b2也是。开发部3人,组长man, 组员devA,devB;开发分支,某人/需求专用,例如组员devA;开发分支,某人/需求专用,例如组员devB;组员各自开发,分别提交到自己的分支。各自拉取,并切换到各自的专用分支。原创 2023-03-09 19:06:37 · 690 阅读 · 0 评论 -
解决git未指定冲突处理方法的问题 - hint: Pulling without specifying how to reconcile divergent branches ishint: di
解决办法git config pull.rebase falserudon@vmu:/var/www/$ git pullhint: Pulling without specifying how to reconcile divergent branches ishint: discouraged. You can squelch this message by running one of the followinghint: commands sometime before your原创 2021-10-30 11:35:01 · 4925 阅读 · 0 评论 -
Ubuntu如何设置git显示语言为英文
目前rudon@vmu:/var/www$ git status位于分支 master您的分支与上游分支 'origin/master' 一致。未跟踪的文件: (使用 "git add <文件>..." 以包含要提交的内容) public/dev.html提交为空,但是存在尚未跟踪的文件(使用 "git add" 建立跟踪)设置为英文的步骤touch ~/.bash_aliasesecho "alias git='LANG=en_GB git'" ...原创 2021-10-30 11:22:33 · 720 阅读 · 0 评论 -
git commit撤销 - 取消commit
git add和git commit后,想撤销commit,怎么办?git reset --soft HEAD^搞定~ (以上命令要一字不差)其他:ubuntu@vps008:/path/to/repo$ git commit -m "ProjectName small improve"[master 3326c11c] ProjectName small improve Committer: ubuntu <ubuntu@localhost.localdomain原创 2021-07-17 22:03:57 · 681 阅读 · 0 评论 -
开源许可证GPL、BSD、MIT、Mozilla、Apache和LGPL的区别
转载 2020-08-06 13:50:25 · 315 阅读 · 0 评论 -
光速创建带有ThinkPHP6的Git仓库 - TP6如何安装在非空目录
(1) 须知TP6通过composer安装在非空目录的错误提醒[InvalidArgumentException]Project directory "/private/var/www/xxx/" is not empty.# 造成了Git clone创建新文件夹 和ThinkPHP6初始化的冲突TP6如何安装在非空目录?不行,没找到官方的解决办法,只能让它帮你新建一个目录,例如:composer create-project topthink/think xxx..原创 2020-07-10 12:17:50 · 1103 阅读 · 0 评论 -
Mac下安装homebrew,并解决brew慢到不行的问题
安装homebrew下载安装脚本(已优化):https://download.csdn.net/download/qq285744011/12564109 安装方法:命令行输入./brew_install_from_aliyun.sh回车即可安装以后,更新brew的源为“阿里云”cd "$(brew --repo)"git remote set-url origin https://mirrors.aliyun.com/homebrew/brew.gitcd "$(brew --r.原创 2020-06-30 16:01:41 · 14090 阅读 · 0 评论 -
解决无法Git的问题:There is no tracking information for the current branch. Please specify which branch...
错误提示[root@vps project]# git pullThere is no tracking information for the current branch.Please specify which branch you want to merge with.See git-pull(1) for details git pull <remote> <branch>If you wish to set tracking information fo..原创 2020-05-12 08:43:14 · 4250 阅读 · 0 评论 -
码云GIT推送失败 - the remote end hung up unexpectedly Connection to gitee.com closed by remote host
前言以前直接是在码云上新建了一个私有库,在直接git clone xxx下来的,现在git push不了。错误提示Your branch is based on 'origin/xxxx', but the upstream is gone.(use "git branch --unset-upstream" to fixup)git push -u origin mas...原创 2020-04-02 13:29:20 · 2952 阅读 · 0 评论