`

Google code: Why ‘Everything up-to-date’ when pushing (git)

    博客分类:
  • Git
 
阅读更多

http://blog.csdn.net/yang3wei/article/details/8548402

 

第一次在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 -v 

origin  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

 即可。

分享到:
评论

相关推荐

    git-exercise_pushing

    git-exercise_pushing

    Single Page Web Applications JavaScript end-to-end

    Single page web applications are your next step: pushing UI rendering and business logic to the browser and communicating with the server only to synchronize data, they provide a smooth user ...

    Learn.Git.in.a.Month.of.Lunches.1617

    Git is the source code control system preferred by modern development teams. Its decentralized architecture and lightning-fast branching let you concentrate on your code instead of tedious version ...

    exercises-pushing-up-

    欢迎USER_NAME, 这是Gitpod的代码学院学生模板。 我们已经预装了您入门所需的所有工具。 您可以安全地删除此README.md文件,或为您自己的项目进行更改。 不过,请至少阅读一次! 它包含有关Gitpod和我们使用的扩展...

    3D-visual-pushing-grasping.zip

    3D-visual-pushing-grasping.zip,通过深度强化学习,训练机器人代理学习计划推动和抓取操作动作。,3D建模使用专门的软件来创建物理对象的数字模型。它是3D计算机图形的一个方面,用于视频游戏,3D打印和VR,以及其他...

    notify-by-pushover:Pushing服务的Icinga通知提供程序

    Pushing服务的Icinga通知提供程序该Perl脚本旨在替代任何通知提供程序。 它支持每个用户的API密钥配置。 notify-by-pushovernotify-by-pushover是为 + 。 注意:目前不支持flapping通知。要求具有以下模块的Perl URI...

    Jenkins Fundamentals

    Jenkins Fundamentals teaches you everything you need to know about installing, setting up, configuring, and integrating a Jenkins server with your project to speed up the product development life ...

    英文原版-Pushing Pixels Secret Weapons for the Modern Flash Animator 1st Edition

    Go above and beyond those stop-gaps and step-by-steps with Pushing Pixels, the real-world guide to developing dynamic and fun content from conception to deployment. Whether you are animating for a ...

    squashfs1.3r3.tar.gz

    3. Files up to 2^32 bytes are supported. Filesystems can be up to 2^32 bytes. 4. Inode and directory data are highly compacted, and packed on byte boundaries. Each compressed inode is on average 8 ...

    高通 | vr-and-ar-pushing-connectivity-limits1

    AR and VR are revolutionary interfacesSharing many of the same underlying techno

    iOS 7 Programming Pushing the Limit

    Get ready to create killer apps for iPad and iPhone on the new iOS 7!...iOS 7 Programming: Pushing the Limits will help you develop applications that take full advantage of everything iOS 7 has to offer.

    squashfs2.2-r2.tar.gz

    3. Files up to 2^32 bytes are supported. Filesystems can be up to 2^32 bytes. 4. Inode and directory data are highly compacted, and packed on byte boundaries. Each compressed inode is on average 8 ...

    3D Visual Content Creation, Coding and Delivery 2019.pdf

    The main goals of using 3D multimedia have been maintained over the years as the ability to provide users with perceptual elements (mostly audiovisual) capable of providing an immersion feeling of ...

    php.ini-development

    Please see the actual settings later in the document for more details as to why ; we recommend these changes in PHP's behavior. ; display_errors ; Default Value: On ; Development Value: On ; ...

    Learn.Search.Engine.Optimization.With.Smart.Internet.Marketing.Strategies 2018

    No matter your background, SEO 2018 will walk you through search engine optimization techniques used to grow countless companies online, exact steps to rank high in Google, and how get a ton of ...

    Pro ASP.NET SignalR Real-Time Communication in .NET with SignalR 2.1(pdf原版)

    Innovations like Google live search and live Facebook and Twitter updates are pushing users’ expectations of the real-time web. With Pro ASP.NET SignalR, you can join this revolution and learn ...

    Building Software Teams Ten Best Practices for Effective Software Development

    Metric approach Translate those goals to a verifiable Definition of ...pushing code through the pipeline Define development process standards to improve consistency and simplicity Manage dependencies on ...

    chocoluffy.github.io:我的世界

    At local master branch git checkout master, pull the master branch and run sh submit-to-baidu.sh to submit latest blog posts to baidu crawler. Remember to input token from baidu.Log[19.1.20] 自定义...

    Pro ASP.NET SignalR(Apress,2014)

    Innovations like Google live search and live Facebook and Twitter updates are pushing users' expectations of the real-time web. With Pro ASP.NET SignalR, you can join this revolution and learn skills...

Global site tag (gtag.js) - Google Analytics