如果我移动已推送的本地Git仓库,会发生什么情况? [英] What happens if I move a local Git repo that has already been pushed?

查看:125
本文介绍了如果我移动已推送的本地Git仓库,会发生什么情况?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设我有一个本地Git仓库已经被推送到远程仓库。如果我将本地repo移动到另一个本地目录,会发生什么?

绝对没有。



您可以安全地移动git-tracked目录(只要 .git 目录里面的其他内容一起移动)


Suppose I have a local Git repo that has already been pushed to some remote repository. What happens if I move that local repo to another local directory?

解决方案

Absolutely nothing. The remote will still be tracked, and everything will still work.

You can safely move git-tracked directories (as long as the .git directory inside moves along with everything else)

这篇关于如果我移动已推送的本地Git仓库,会发生什么情况?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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