【发布时间】:2021-04-11 23:53:39
【问题描述】:
我有一个与 google Drive 同步的 repo,但我忽略了 .git 目录,因此它现在已上传到 Google Drive。
最近我格式化了我的 Gentoo 机器,在我再次同步所有 Google Drive 文件后,我意识到 .git 目录不存在。
问题是我不记得我是否在本地有一些未标记/未提交的更改未推送到 github。
我一直在搜索,但只找到了相反问题的答案(没有.git 目录的克隆)
- How do I clone a subdirectory only of a Git repository?
- Cloning only a subdirectory with git
- How to clone git repository only some directories?
- Is it possible to clone only part of a git project?
- Git Clone: Just the files, please?
- Git clone without .git directory
在我确定可能的本地更改不会丢失之前,我不想为我的仓库创建 git clone。
有没有什么方法可以只克隆.git 文件夹,然后推送我机器中可能有的任何本地更改?
【问题讨论】:
标签: git github version-control