Git与GitHub学习笔记(五)一次提交失败的记录
代码已经跟踪了,添加注释说明,但是总是添加不了
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
files changed, insertions(+), deletions(-) D:\wamp64\www\study-line>git push origin develop
Counting objects: , done.
Delta compression using up to threads.
Compressing objects: % (/), done.
Writing objects: % (/), 1.09 KiB | bytes/s, done.
Total (delta ), reused (delta )
remote: Resolving deltas: % (/), completed with 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
Git与GitHub学习笔记(五)一次提交失败的记录的更多相关文章
- Git与GitHub学习笔记(二)提交的一些笔记
		
1.合并分支的使用一定要切换到master分支上去合并:git merge company2.切换分支的时候一定要提交干净本地分支的代码,才可以切换分支,否则提示错误信息: 3.这时候我们做的就是提交 ...
 - Git与GitHub 学习笔记
		
以下信息来源于网络资料,并进行整理与精简 Git是目前世界上最先进的分布式版本控制系统,和svn,vss等一样都是进行版本控制的. GitHub是一个软件项目的托管平台,相当于自己建立的 svn服务器 ...
 - git和github学习笔记
		
1. 了解Git和Github 2. 使用Github 3. Git安装和使用 4. Git基本工作流程 5. Git初始化及仓库创建和操作 6. Git管理远程仓库 7. Github Pages ...
 - eclipse使用git及github学习笔记
		
项目托管 1.首先需要在github上建立一个远端仓库 点击Create repository后,会在github上建立相应的git仓库,并会出现如下界面: 复制https或者ssh的仓库地址,远端 ...
 - Git与GitHub学习笔记(七)Windows 配置Github ssh key
		
前言 SSH是建立在应用层和传输层基础上的安全协议,其目的是专为远程登录会话和其他网络服务提供安全性的保障,用过SSH远程登录的人都比较熟悉,可以认为SSH是一种安全的Shell.SSH登录是需要用户 ...
 - Git与GitHub学习笔记(三).gitignore文件忽略和删除本地以及远程文件
		
一.Git提供了文件忽略功能.当对工作区某个目录或者某些文件设置了忽略后,git将不会对它们进行追踪 HELP:如何在IntelliJ IDEA中使用.ignore插件忽略不必要提交的文件 问题:最近 ...
 - Git与GitHub学习笔记(八)git如何同时同步提交到码云和GitHub上
		
前言: 今天github push代码一直push不上去,打算就备份一份代码带国内开源码云上. Github容易出现的情况是: 国内访问速度比较慢, 如果被墙掉的话,就直接没发使用了 如果开源个PHP ...
 - git and github学习笔记
		
1.git的状态分为working status,stage status和commit status.git diff查看的是working status和 stage status之间的不同,gi ...
 - Git与GitHub学习笔记(六)使用 Github Pages 管理项目文档
		
前言 你可能比较熟悉如何用 Github Pages 来分享你的工作,又或许你看过一堂教你建立你的第一个 Github Pages 网站的教程.近期 Github Pages 的改进使得从不同的数据源 ...
 
随机推荐
- What Is Apache Hadoop
			
What Is Apache Hadoop? The Apache™ Hadoop® project develops open-source software for reliable, scala ...
 - Linux CentOS虚拟机网卡配置
			
最近在VMware安装CentOS6.5之后,每次从宿主机访问虚拟机的Oracle时,都要修改IP地址,因为没有设置虚拟机的IP,所以每次开机之后虚拟机的IP地址都是随机的,于是研究了下给虚拟机配置静 ...
 - ubuntu安装steam
			
增加第三方自由库的软件支持 sudo add-apt-repository multiverse 增加更新支持包 sudo add-apt-repository multiverse 安装steam ...
 - Oracle面试题(基础篇)
			
1. Oracle跟SQL Server 2005的区别? 宏观上: 1). 最大的区别在于平台,oracle可以运行在不同的平台上,sql server只能运行在windows平台上,由于windo ...
 - (转)vmware下给linux虚拟机扩容
			
“Well, here’s another fine mess you’ve gotten me into” Let us pretend that you have an Ubuntu Server ...
 - sql 数据库(表空间),用户  相关命令
			
随便转载,保留出处:http://www.cnblogs.com/aaron-agu/ 查看所有数据库 show databases; 创建新数据库 create datebase dbname:#登 ...
 - Fiddler4入门——手机抓包
			
一.下载工具包 百度搜索”fiddler 下载“ ,安装最新版本 下载的软件安装包为“fiddler_4.6.20171.26113_setup.exe”格式,双击安装.安装成功,在“开始”-“所有程 ...
 - 微软爱开源:向Linux社区开放60000多项专利
			
10月10日,微软在博客中宣布正式加入开放创新网络(Open Invention Network, 简称“OIN”),向所有开源专利联盟的成员开放其专利组合. 微软的加入意味着,旗下60000多项专利 ...
 - TM数据
			
qatestjr_xuyue10@vipabc.comqatestjr_xuyue01@vipabc.com jrNHc2 jUBRTEqatestjr_nianyue@vipabc.com QE9E ...
 - Spark_RDD之RDD操作简介
			
1.转化操作 转化操作是返回一个新的RDD的操作,我们可以使用filter()方法进行转化.举个使用scala进行转化操作的例子. def main(args: Array[String]): Uni ...