移动整个git repo目录 [英] Moving entire git repo directory

查看:100
本文介绍了移动整个git repo目录的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果你在Windows上有一个Git仓库 c:\mydir\myrepo ,你可以移动整个 myrepo 目录说 d:\blah\myrepo

If you have a Git repo on Windows at c:\mydir\myrepo can you just move the entire myrepo directory to say d:\blah\myrepo?

我假设 myrepo \.git 配置目录是相对于父项的,因此您可以移动整个目录没有任何问题。

I'm assuming the myrepo\.git configuration directory is relative to the parent so you can move the entire directory without any issues.

推荐答案

简短回答:是的。如果您移动整个目录(包括它的 .git 文件夹),那么git将继续在项目中运行,并且您可以继续使用它,而不会出现问题。

Short answer: yes. If you move the entire directory, including it's .git folder, git will continue functioning on the project and you'd be able to continue working with it without issue.

这篇关于移动整个git repo目录的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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