Git与GitHub学习笔记(五)一次提交失败的记录

简介: 代码已经跟踪了,添加注释说明,但是总是添加不了error: pathspec 'live-page'' did not match any file(s) known to git.重复了好多遍,最后发现代码还是没有提交D:\wamp64\www\study-line>git commi...

代码已经跟踪了,添加注释说明,但是总是添加不了

error: pathspec 'live-page'' did not match any file(s) known to git.

重复了好多遍,最后发现代码还是没有提交

D:\wamp64\www\study-line>git commit -m 'add live-page'
error: pathspec 'live-page'' did not match any file(s) known to git.

D:\wamp64\www\study-line>git add ./

D:\wamp64\www\study-line>git push origin develop
Everything up-to-date

 最后查看了一下当前状态

继续,按照这个总算是提交成功了

D:\wamp64\www\study-line>git status
On branch develop
Your branch is up-to-date with 'origin/develop'.
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)

        modified:   application/backend/view/common/sidebar.html
        modified:   application/backend/view/linux_shell/internalStorage.html
        modified:   application/backend/view/live/vodEdit.html
        modified:   application/backend/view/live/vodManage.html

D:\wamp64\www\study-line>git reset ./
Unstaged changes after reset:
M       application/backend/view/common/sidebar.html
M       application/backend/view/linux_shell/internalStorage.html
M       application/backend/view/live/vodEdit.html
M       application/backend/view/live/vodManage.html

D:\wamp64\www\study-line>git status
On branch develop
Your branch is up-to-date with 'origin/develop'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

        modified:   application/backend/view/common/sidebar.html
        modified:   application/backend/view/linux_shell/internalStorage.html
        modified:   application/backend/view/live/vodEdit.html
        modified:   application/backend/view/live/vodManage.html

no changes added to commit (use "git add" and/or "git commit -a")

D:\wamp64\www\study-line>git add ./

D:\wamp64\www\study-line>git commit -m "add CDN page"
[develop 0be7d2a] add CDN page
 4 files changed, 9 insertions(+), 14 deletions(-)

D:\wamp64\www\study-line>git push origin develop
Counting objects: 12, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (12/12), done.
Writing objects: 100% (12/12), 1.09 KiB | 0 bytes/s, done.
Total 12 (delta 11), reused 0 (delta 0)
remote: Resolving deltas: 100% (11/11), completed with 11 local objects.
remote: This repository moved. Please use the new location:
remote:   https://github.com/Tinywan/study-line.git
To https://github.com/Tinywan/study-line.git
   283c67f..0be7d2a  develop -> develop

 

目录
相关文章
|
4月前
|
安全 网络安全 开发工具
百度搜索:蓝易云【git无法使用git协议clone github仓库问题解决方法】
通过尝试以上解决方法,你应该能够解决无法使用Git协议克隆GitHub仓库的问题。选择适合你网络环境和要求的方法,并根据需要进行相应的配置。
185 2
|
2月前
|
人工智能 运维 Linux
一文了解IntelliJ IDEA如何使用git上传代码到GitHub(附常见问题解决方案)
一文了解IntelliJ IDEA如何使用git上传代码到GitHub(附常见问题解决方案)
90 0
|
3月前
|
Shell 网络安全 开发工具
Git学习笔记
Git学习笔记
79 1
Git学习笔记
|
22天前
|
Shell 开发工具 git
【Github】git bash将本地工程上传至github
【Github】git bash将本地工程上传至github
|
1月前
|
缓存 开发工具 数据安全/隐私保护
通过一篇文章带你玩转git和GitHub
在现代软件开发中,版本控制系统是不可或缺的工具。Git和Github是其中最受欢迎的组合。Git是一个开源的分布式版本控制系统,用于追踪代码的改动,而Github则是一个基于Git的代码托管平台,提供了代码托管、协作开发等功能。
81 2
通过一篇文章带你玩转git和GitHub
|
1月前
|
Linux 开发工具 git
Git与GitHub:解锁版本控制的魔法盒子
Git与GitHub:解锁版本控制的魔法盒子
31 1
|
2月前
|
Linux 开发工具 git
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
【开发专题_03】unable to access ‘https://github.com/deviantony/docker-elk.git/‘: Failed connect to github
|
2月前
|
安全 Shell 网络安全
Git学习---Git快速入门、Git基础使用、Git进阶使用、Git服务器使用(IDEA集成GitHub、Gitee、GitLab)、GitHub Desktop客户端
Git学习---Git快速入门、Git基础使用、Git进阶使用、Git服务器使用(IDEA集成GitHub、Gitee、GitLab)、GitHub Desktop客户端
131 0
|
3月前
|
网络安全 开发工具 git
Git在windows下上传文件至github流程
Git在windows下上传文件至github流程
22 0
|
4月前
|
编译器 定位技术 开发工具
分布式版本控制系统Git的下载、安装与使用其复制GitHub项目代码的方法
分布式版本控制系统Git的下载、安装与使用其复制GitHub项目代码的方法

热门文章

最新文章