简体   繁体   中英

git checkout from one branch to another deleted all local changes. How can i retrieve them?

I have changes on devel branch. I checked out on master without commiting the changes. All the local changes got deleted in devel . How can I retrieve them?

Android Studio 本地历史记录可能对您有所帮助,请参阅此处意外恢复主控,丢失未提交的更改,这实际上取决于您的情况。

I would suggest using GitHub Desktop. It will always ask you to commit or move changes before switching to another branch locally.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM