中国制造网官方网站入口网址网站建设企业所得税
- 作者: 五速梦信息网
- 时间: 2026年04月20日 03:48
当前位置: 首页 > news >正文
中国制造网官方网站入口网址,网站建设企业所得税,网页加入信任站点,wordpress简便安装按照大家的做法#xff0c;把自己遇到的问题及解决方案写出来#xff08;注意#xff1a;Error里面有些方法有时候我用可以成功#xff0c;有时候我用也不能成功#xff0c;写出来仅供参考#xff0c;实在不行重头再clone#xff0c;add#xff0c;commit#xff0c;p…按照大家的做法把自己遇到的问题及解决方案写出来注意Error里面有些方法有时候我用可以成功有时候我用也不能成功写出来仅供参考实在不行重头再cloneaddcommitpush吧万物皆可重头再来 文章目录 Github上传文件到远程仓库1.create repository Github上创建仓库就不多说了2.复制新建仓库链接在本地创建一个新文件夹 upload打开git bash 然后git clone 这个仓库代码如下新建仓库链接在绿色按钮 Code里https里的链接3.把自己要上传到仓库的文件复制到自己创建的本地文件夹里这里我创建的文件夹叫upload右键打开git bash4. git init5. git add . 将工作区的文件添加到暂存区.是当前目录下的所有文件也可知输入文件夹的名称6. git commit -m ‘first commit’7. git push origin main 完成刷新github就好啦 如何修改github已提交的文件或者再次上传文件到远程仓库1. 增加新文件在本地仓库右键打开git bash2. git status查看当前状态3.git commit -m 修改地方 4.git push origin main 完成刷新github就好啦 删除仓库使用lfs 上传大文件 100 M 文件或者数据0.如何下载lfs1. 安装 git lfs2. 确定要追踪的上传文件类型3.git add .gitattributes4.git add .5. git commit -m ‘add commit’6. git push origin mainError1Remote origin does not support the LFS locking API. Consider disabling it with : $ git config lfs.https://git解决办法 Error 2上传图片失败解决办法 Error3:On branch main Your branch is up to date with origin/main. nothing to commit, working tree clean解决办法 Error4:fatal: Unable to create D:/PyCharm 2022.3.2/workplace/FSL/upload/Succ_test/.git/index.lock: File exists.解决办法: Error 5:remote: error: File: MB, exceeds 100.00 MB.git push提示我文件大于100M解决办法 Error 6: ! [rejected] main - main (non-fast-forward) error: failed to push some refs to https://github.com/wangjiawen-123/Succ_test.git解决办法 针对Error456有时候我试了并没解决问题重新clone重新按流程上传吧 Github上传文件到远程仓库
1.create repository Github上创建仓库就不多说了
注意这里一定要add README file要不然仓库不能clone到本地
2.复制新建仓库链接在本地创建一个新文件夹 upload打开git bash 然后git clone 这个仓库代码如下新建仓库链接在绿色按钮 Code里https里的链接 git clone https://github.com/wangjiawen-123/Succ_test.git clone有时候网不好多试几次就可以 也可能会报错fatal: unable to access ‘https://github.com/wangjiawen-123/Succ_test.git/’: Failed to connect to 127.0.0.1 port 1080 after 2074 ms: Connection refused解决办法在最后面Error部分 3.把自己要上传到仓库的文件复制到自己创建的本地文件夹里这里我创建的文件夹叫upload右键打开git bash 4. git init
- git add . 将工作区的文件添加到暂存区.是当前目录下的所有文件也可知输入文件夹的名称
- git commit -m ‘first commit’
‘first commit’ ‘’ 引号中填什么都行这步是添加一个标记信息暂存区的文件添加到本地仓库
- git push origin main 完成刷新github就好啦 如何修改github已提交的文件或者再次上传文件到远程仓库
- 增加新文件在本地仓库右键打开git bash
- git status查看当前状态
红色的字体显示的就是你修改的文件或者添加的新文件比如images/
3.git commit -m 修改地方
比如这里增加一个文件夹images里面有6张图片 4.git push origin main 完成刷新github就好啦 删除仓库 若仓库不小心创建错了在该错误仓库下找到 Setting点进去拉到最底下有个 Delete this repository输入密码就删除啦
使用lfs 上传大文件 100 M 文件或者数据 0.如何下载lfs 打开 https://git-lfs.github.com/ 进行下载.exe文件下载后安装就好了
- 安装 git lfs git lfs install 2. 确定要追踪的上传文件类型
比如我要上传一个 omniglot.npy 文件
git lfs track *.npy这将告诉 Git LFS 跟踪所有扩展名为 .npy 的文件并使用 Git LFS 进行管理。
3.git add .gitattributes 4.git add . - git commit -m ‘add commit’
- git push origin main
我这里报错了写在Error2里面解决后再次上传就好了
若上述看不懂参考 【Git】保姆级教程如何在 GitHub 上传大文件≥100M含自己的操作流程 Error1Remote “origin” does not support the LFS locking API. Consider disabling it with : $ git config lfs.https://git 解决办法 按照上面提示语句重新敲一遍再进行push就好啦
参考git小文件时报错Remote “origin” does not support the LFS Error 2上传图片失败 原因DNS污染了即无法访问存放了github图片素材的raw.githubusercontent.com站点 解决办法 查找raw.githubusercontent.com 的ip并将其添加至系统hosts文件即可 ( 如何查找和添加hosts参考上一篇文档: 问题github上不了但是其他网页可以正常打开) 成功可以显示图像
Error3:On branch main Your branch is up to date with ‘origin/main’. nothing to commit, working tree clean 原因暂存区没东西获或者东西都提交到版本库中的当前分支且工作区中的文件都被git跟踪了都git add . 解决办法 重新修改当前要提交的文件中的任何一个文件无论做什么修改空格都行然后重新执行 git add . git commit -m ‘备注’ git push -u origin main Error4:fatal: Unable to create ‘D:/PyCharm 2022.3.2/workplace/FSL/upload/Succ_test/.git/index.lock’: File exists. 原因当时我git add . 半天没有反应在commit的时候出现误操作或者意外 解决办法: 我们在commit的时候git会自动创建一个index.lock文件操作完成后就会自动删除。但是如果在commit的时候出现误操作或者意外那么就会导致这个文件不会自动删除所以想要正常运行就必须手动把这个文件删除 rm -f ./.git/index.lock Error 5:remote: error: File: MB, exceeds 100.00 MB.git push提示我文件大于100M 解决办法 输入XXX为显示的大文件比如这里我的文件是 Omniglot/omniglot.py git filter-branch –force –index-filter “git rm –cached –ignore-unmatch Omniglot/omniglot.py” –prune-empty –tag-name-filter cat – –all 接着再次 git push origin main Error 6: ! [rejected] main - main (non-fast-forward) error: failed to push some refs to ‘https://github.com/wangjiawen-123/Succ_test.git’ 原因由于本地库的代码和远程库代码没有同步导致无法提交合并产生冲突导致无法push 解决办法 git pull origin master –allow-unrelated-histories在进行 git push 就完事了 若想上传大文件可以下载 git lfs使用lfs上传具体上传步骤本文有些 针对Error456有时候我试了并没解决问题重新clone重新按流程上传吧 我因为之前传过大文件所以会产生一系列问题但是反复试了很多遍上述解法也没有用最后我重新clone了远程仓库再重新上传文件,git add . ——- git commit -m “xxx” ——- git push origin main 一下子就成功了 参考文章 上传文件到Github仓库 GitHub上传文件到仓库 git 报错nothing to commit, working tree clean 【Git】保姆级教程如何在 GitHub 上传大文件≥100M含自己的操作流程
相关文章
-
中国招标建设信息网站企业网站建设 会计分录
中国招标建设信息网站企业网站建设 会计分录
- 技术栈
- 2026年04月20日
-
中国站长查询域名备案哪个网站可以代做试题
中国站长查询域名备案哪个网站可以代做试题
- 技术栈
- 2026年04月20日
-
中国怎么进fiverr网站做任务网页图片无法另存为
中国怎么进fiverr网站做任务网页图片无法另存为
- 技术栈
- 2026年04月20日
-
中国住房城乡和城乡建设部网站wap建站系统php版
中国住房城乡和城乡建设部网站wap建站系统php版
- 技术栈
- 2026年04月20日
-
中国住房城乡建设厅网站济南seo的排名优化
中国住房城乡建设厅网站济南seo的排名优化
- 技术栈
- 2026年04月20日
-
中国住房和城乡建设部建造师网站最简约的网站
中国住房和城乡建设部建造师网站最简约的网站
- 技术栈
- 2026年04月20日
