Git: Why 'Everything up-to-date' when pushing
来源:互联网 发布:js将时间转换为时间戳 编辑:程序博客网 时间:2024/05/14 02:29
原文链接:
http://blog.rexzhao.com/2011/11/28/google-code-git-everything-up-to-date-when-push.html
第一次在 Google Code
上弄项目,注册完毕后,
尝试增加一个新文件用以测试 Git 是否好好工作。
结果在 Push
时却显示 Every up-to-date
,检查文件时却发现实际上一个都没更新上去。
因为对 Git
不够熟悉,因此只好 Googling
,进行一番搜索后找到原因如下:
Why does Git refuse to push, saying “everything up to date”?
git push with no additional arguments only pushes branches that exist in the remote already.
If the remote repository is empty, nothing will be pushed.
In this case, explicitly specify a branch to push, e.g. git push master
.
也就是说一开始 git
服务器仓库是完全空的,
不包含任何一个分支(branch
),因此刚开始 Push
时需要指定一个。
执行 git remote -v
后看到自己的 remote
端名字为 origin
:
$ git remote -vorigin https://code.google.com/p/micolog2 (fetch) origin https://code.google.com/p/micolog2 (push)
执行 git branch
后看到自己当下用的分支是 master
:
$ git branch * master
因此在本地 commit
后,再执行 git push origin master
即可。
- Google code: Why 'Everything up-to-date' when pushing (git)
- Git: Why 'Everything up-to-date' when pushing
- git: Why 'Everything up-to-date' when pushing
- git push 提示 Everything up-to-date
- git push 提示 Everything up-to-date
- Git问题Everything up-to-date解决
- Git问题Everything up-to-date解决
- Git问题Everything up-to-date解决
- Git问题Everything up-to-date解决
- Git问题Everything up-to-date解决
- Git问题Everything up-to-date解决
- Everything up-to-date
- 解析git push出现的Everything up-to-date
- 关于git里面的everything up-to-date
- git中Everything up-to-date问题解决方案
- Git push won't do anything (Everything up-to-date)
- $ git push时候提示Everything up-to-date
- 【git】Your branch is up-to-date 和 Everything up-to-date
- 冒泡排序(BubbleSort)
- 编写设计一个People(人)类。该类的数据成员有年龄(age)、身高(height)、体重(weight)和人数(num),其中人数为静态数据成员
- STL中迭代器
- 给Ubuntu安装Windows的字体
- 定义一个描述学生(Student)基本情况的类,数据成员包括姓名(name)、学号(num)、数学成绩(mathScore)、英语成绩(englishScore)、人数(count)、数学总成绩(ma
- Git: Why 'Everything up-to-date' when pushing
- java类集框架小结
- 甲骨文面试题
- magento 资源配置 mysql4-install-0.1.0.php为什么没有执行 ?
- 定义Person(人)类,由Person分别派生出Teacher(教师)类和Cadre(干部)类,再由Teacher(教师)类和Cadre(干部)类采用多重继承方式派生出新类TeacherCadre(
- 算法练习(字符串压缩)
- 定义Staff(员工)类,由Staff分别派生出Saleman(销售员)类和Manager(经理)类,再由Saleman(销售员)类和Manager(经理)类采用多重继承方式派生出新类SaleMana
- socket编程复习(7)-非阻塞socket
- TX2440裸机程序-LCD