创建新分支后,文件/文件夹从本地存储库消失

时间:2019-08-23 08:45:04

标签: windows git github

一个月前,我克隆了一个私人存储库,为确保不丢失任何内容,我决定使用github桌面应用程序创建一个“ dev”分支。之后,我仍然使用桌面应用程序来切换分支,它询问我是否要将更改带到“ dev”

我回到Atom,修改了一个文件,然后尝试保存它...不会,我转到它的文件夹尝试通过该文件夹打开文件,当我尝试打开该文件夹时,它说我没有没有权限..并且它是只读的。

我厌倦了尝试其他方法并重新启动计算机。启动后,整个存储库现在是源/主服务器的克隆。选项卡上打开了一些文件,因此我将它们保存在记事本中,这是最重要的文件,以防万一。

我希望问题甚至在重新启动之前就不会消失,但是“ dev”分支上的文件与主文件位于同一文件夹/文件。

我假设所有内容都以某种方式删除,尽管所有文件都在重启之前显示。上个月我什么都没提交。.基本上是创建一个新分支然后提交所有东西,然后发生了混乱

da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{0}: checkout: moving from dev to master
3d1d656 (origin/dev, dev) HEAD@{1}: checkout: moving from master to dev
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{2}: checkout: moving from a to master
3d1d656 (origin/dev, dev) HEAD@{3}: checkout: moving from dev to a
3d1d656 (origin/dev, dev) HEAD@{4}: checkout: moving from dev to dev
3d1d656 (origin/dev, dev) HEAD@{5}: commit: test
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{6}: reset: moving to da838a040e8052b8cbeb00264d35a38300e6e252
f3851d8 HEAD@{7}: checkout: moving from master to dev
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{8}: checkout: moving from dev to master
f3851d8 HEAD@{9}: checkout: moving from dev to dev
f3851d8 HEAD@{10}: checkout: moving from master to dev
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{11}: checkout: moving from da838a040e8052b8cbeb00264d35a38300e6e252 to master
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{12}: checkout: moving from dev to origin/master
f3851d8 HEAD@{13}: checkout: moving from master to dev
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{14}: checkout: moving from dev to master
f3851d8 HEAD@{15}: commit: test
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{16}: checkout: moving from master to dev
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{17}: reset: moving to HEAD
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{18}: checkout: moving from dev to master
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{19}: reset: moving to HEAD
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{20}: checkout: moving from master to dev
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{21}: checkout: moving from dev to master
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{22}: checkout: moving from dev to dev
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{23}: checkout: moving from master to dev
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{24}: reset: moving to HEAD
da838a0 (HEAD -> master, origin/master, origin/HEAD) HEAD@{25}: commit: added schema and few private files
9cb56c7 HEAD@{26}: commit: first commit
27423c3 HEAD@{27}: clone: from...

我正在尝试查看是否有我不知道的其他本地分支机构,并且列出了这些分支机构。

$ git branch -a
  dev
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/dev
  remotes/origin/master

0 个答案:

没有答案