开发者

Restoring from a Git backup

Our project is using a nightly backup application that simply makes a duplicate of our git repository. We had a case come up where we needed to restore from the backup. Since it was just a duplicate we assumed we could just copy the dup开发者_开发问答licate back to our server and everything would just work. However, some developers did do some pushes the morning after the backup. We assumed these developers would just have to push again. However, after a push is performed and another developer pulls, the other developer only sees commits (via git log) upto the date of backup, they cannot see the commits from morning after the backup.

Not sure what is going on or what to do here...


Just make sure the push is done on the right branch, the log is being seen on the same branch. Also, confirm if the repo on the server does have the changes pushed. Ideally, there should not be any trouble, backup or not, because this is fundamental to how DVCSs work.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜