![](https://img-blog.csdnimg.cn/20201014180756918.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
git
文章平均质量分 70
fareast_mzh
善假于物
展开
-
git 设置 upstream 上游代码库
git/config在这个文件追加,改完了之后gitremote-v查看生效。执行之后,gitremote-v没有改变。在项目目录下编辑这个文件。原创 2022-07-27 12:29:38 · 1168 阅读 · 0 评论 -
Your HOMEBREW_GITHUB_API_TOKEN does not have sufficient scope!
$ brew install podUpdating Homebrew...fatal: bad revision 'HEAD'fatal: bad revision 'HEAD'fatal: Needed a single revisionYou do not have the initial commit yetError: Could not 'git stash' in /usr/local/Homebrew!Please stash/commit manua原创 2021-08-13 13:46:18 · 1182 阅读 · 0 评论 -
git clone error: RPC failed; result=22, HTTP code = 404 fatal: The remote end hung up unexpectedly
git clone http://xx.xx.xx.xx:8090/root/www.baidu.comCloning into 'www.baidu.com'...Username for 'http://xx.xx.xx.xx:8090': rootPassword for 'http://root@xx.xx.xx.xx:8090':error: RPC failed; resul...原创 2019-11-09 14:13:13 · 3454 阅读 · 0 评论 -
gitlab改变项目名称
http://xx.xx.xx.xx/root/toUpgrade/editSettings --> General --> Advanced settingsExpand在本地代码目录git remote set-url origin http://xx.xx.xx.xx:8090/root/www.baidu.com管理文章:git 切换分...原创 2019-11-02 20:27:34 · 8990 阅读 · 0 评论 -
git add 后撤销 git reset HEAD 文件路径
git reset HEAD 文件路径不小心把上传文件的目录也git add进去了撤销addgit reset HEAD public/uploads/原创 2019-10-28 20:27:13 · 1127 阅读 · 0 评论 -
git 新增项目
Command line instructionsGit global setupgit config --global user.name "Administrator"git config --global user.email "admin@example.com"Create a new repositorygit clone http://xx.xx.xx.xx:...原创 2019-09-24 17:45:14 · 290 阅读 · 0 评论 -
git 避免windows下换行符与Unix系列的区别
1.下载gitbash并安装:https://git-for-windows.github.io/运行git命令:避免windows下换行符与Unix系列的区别;防止git路径过深带来的问题;git config --global core.autocrlf falsegit config --global core.longpaths true...原创 2019-08-16 22:14:14 · 876 阅读 · 0 评论 -
git pull origin dev "fatal: refusing to merge unrelated histories"
* git pullgit pull origin devwarning: redirecting to http://gitlab.easytech-main.com/webdev/easyeye.git/From http://gitlab.easytech-main.com/webdev/easyeye* branch dev -> FE...原创 2019-08-11 22:30:25 · 665 阅读 · 0 评论 -
git新建项目 从已有项目目录上传到指定的git链接, git 查看某次提交所有变更
1. CentOS服务器搭建https://blog.csdn.net/fareast_mzh/article/details/871629912.git新建项目 从已有项目目录上传到指定的git链接 git init git remote add origin http://gitlab.easytech-main.com/mingzhanghui/crmser...原创 2019-07-24 19:06:18 · 914 阅读 · 0 评论 -
git 回退到上个版本 rollback 回滚 git reset HEAD, git 回退到上一版本
git回退到上个版本git reset --hard HEAD^ 回退到前3次提交之前,以此类推,回退到n次提交之前git reset --hard HEAD~3退到/进到 指定commit的sha码git reset --hard dde8c25694f34acf8971f0782b1a676f39bf0a46 强推到远程git push origin............原创 2019-06-26 09:04:35 · 104836 阅读 · 3 评论 -
git合并分支
dev1.0-wcy => dev1.0-mzh@branch dev1.0-mzhCheck out, review, and merge locallyStep 1. Fetch and check out the branch for this merge requestgit fetch origingit checkout -b dev1.0-wcy orig...原创 2019-06-19 13:19:34 · 739 阅读 · 0 评论 -
git 切换分支 remote set-url, git删除分支
# 查看git源git remote -vgit remote set-url origin http://mingzhanghui@xx.xx.xx.xx:8090/r/ENSO/webapp.git# 切换git源git remote set-url origin http://mingzhanghui@192.168.10.57/r/OnlineEdu/bgms-w...原创 2018-07-10 16:23:00 · 2848 阅读 · 0 评论 -
CentOS Git 服务器搭建
搭建一台Git服务器作为私有仓库使用。1、安装Git$ yum install curl-devel expat-devel gettext-devel openssl-devel zlib-devel perl-devel$ yum install git接下来我们 创建一个git用户组和用户,用来运行git服务:$ groupadd git$ useradd gi...原创 2019-02-13 10:08:40 · 430 阅读 · 0 评论 -
git无法pull仓库refusing to merge unrelated histories
git push --set-upstream origin devTo http://gitlab.easytech-main.com/webdev/easyeye.git ! [rejected] dev -> dev (non-fast-forward)error: failed to push some refs to 'http://gitlab.easy...原创 2018-09-07 09:18:13 · 300 阅读 · 0 评论 -
git 合并分支 git merge branch_name, 撤销上一次commit
* 查看分支git branch * 更新git pull * 切换到master分支git checkout masterChecking out files: 100% (907/907), done.Switched to branch 'master'Your branch is up to date with 'origin/m...原创 2018-08-03 17:56:00 · 1476 阅读 · 0 评论