tortoisegit推送成功,但是没有新文件? [英] tortoisegit push successfully, but no new files?

查看:198
本文介绍了tortoisegit推送成功,但是没有新文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在Linux服务器上设置了git存储库,并在Windows 7笔记本电脑上安装了最新的MSysGit和TortoiseGit. 我可以通过TortoiseGit从远程存储库中提取信息,并且可以提交&也推送到远程存储库. 如果我在远程服务器上运行"git log",它可以正确显示最新注释.但是新文件在远程服务器中丢失.请提出建议.非常感谢.

I have setup a git repository in a linux server, and installed the latest MSysGit and TortoiseGit on my Windows 7 laptop. I can pull from the remote repository by TortoiseGit, and I can commit & push to remote repository too. If I run "git log" in the remote server, it can show the latest comments correctly. But the new files are missing in the remote server. Please advise and suggest. Thank you so much.

推荐答案

强烈建议您不要推送到* non- * bare存储库.相反,您应该创建一个裸存储库,它是远程存储库的副本.便携式计算机将推送到裸仓库,然后远程仓库将从裸仓库 pull .

It is highly recommended that you never push to a *non-*bare repository. Instead, you should create a bare repository that is a clone of your remote repository. The laptop will push to the bare repository, then the remote repository will pull from the bare one.

如果您推送到非裸存储库,则迟早会意外丢失工作.

If you push to the non-bare repository, you will sooner or later accidentally lose work.

这篇关于tortoisegit推送成功,但是没有新文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆