网络营销推广案例有哪些,网站seo技术能不能赚钱,自己可以制作微信小程序吗,哪些公司网站建设好首先#xff0c;记录一下mac系统显示隐藏文件夹的快捷键#xff1a;commandshift句号#xff0c;可以显示工程目录下的隐藏的git文件夹
一 git报错:‘origin‘does not appear to be a git repository的解决方法
找到工程目录下的.git/config文件发现里边没有remote orig… 首先记录一下mac系统显示隐藏文件夹的快捷键commandshift句号可以显示工程目录下的隐藏的git文件夹
一 git报错:‘origin‘does not appear to be a git repository的解决方法
找到工程目录下的.git/config文件发现里边没有remote origin的配置手动填上去如下
[core]repositoryformatversion 0filemode falsebare falselogallrefupdates truesymlinks falseignorecase true
[remote origin]url 远程仓库地址fetch refs/heads/*:refs/remotes/origin/*
[branch master]remote originmerge refs/heads/master
二 git报错fatal: ‘origin‘ does not appear to be a git repository Could not read from remote repository
检查remote内容
git remote -v
删除远程origin
git remote rm origin
检查是否完全删除
git remote -v
重新建立连接
git remote add origin 远程仓库的地址
三 git报错fatal: refusing to merge unrelated histories
git merge master --allow-unrelated-histories
git pull --allow-unrelated-histories
git push origin master