git checkout丢失的文件

时间:2019-06-10 00:35:19

标签: git git-checkout

我是git的新手,所以请您建议我如何解决这个问题

I was on branch name v1.2.3-build2

> git status
> Your branch is up to date with 'origin/v1.2.3-build2'.

Changes to be committed:
new file:   Project/Modules/Debug/Debug.swift
.....

Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git checkout -- <file>..." to discard changes in working directory)

modified ....

> git:(v1.2.3-build2) ✗ git checkout -b v1.2.3-debug


> A Project/Modules/Debug/Debug.swift
> M Project/Modules/Home/Home.swift
> ....

Switched to a new branch 'v1.2.3-debug'
> git push --set-upstream origin v1.2.3-debug

但是我什至无法尝试在git上找到代码,即使我尝试git reset和git log也不起作用。

0 个答案:

没有答案