First, my develop is clear, git status
is clear.
When I do pull origin develop
followed by git status
, it's shown below
On branch develop
Your branch is up-to-date with 'origin/develop'.
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: app/services/thrift/idls/woss/open-api/deviceInfo_service.thrift
no changes added to commit (use "git add" and/or "git commit -a")
I want to checkout this file, so I use commands like these
git add .
git checkout -- .
git stash save --keep-index
git checkout-index -a -f
git config --global core.autocrlf false/true/input
git config --global core.filemode false
But none of them works.
git diff
shown below,
diff --git a/app/services/thrift/idls/woss/open-api/deviceInfo_service.thrift b/app/services/thrift/idls/woss/open-api/deviceInfo
index 7040bf3..062bec8 100644
--- a/app/services/thrift/idls/woss/open-api/deviceInfo_service.thrift
+++ b/app/services/thrift/idls/woss/open-api/deviceInfo_service.thrift
@@ -1,5 +1,5 @@
-namespace rb thrifts.result
+namespace rb ThriftService
struct QueryDeviceInfo{
@@ -25,7 +25,7 @@ struct DeviceInfo{
struct Result{
- 1:i32 stat_code,
+ 1:i32 statCode,
2:string errMsg;
Any help will be appreciated!