Reputation: 1625
In git kraken, pull origin and checkout the branch. Immediately, it come with couple of files changes even not done any modification. When seen changes and "Ignore white space" to true in viewer then it shows as below: "File contents are unchanged. Uncheck "Ignore white space" to see potential white space changes."
when try to discard those files then its unable to discard, try to stash those files then it stash and immediately unstash.
How to solve this issue so, git kraken work correctly and does not show me files are changed even its not change, (it just pull the new branch).
Thanks
Upvotes: 0
Views: 1068
Reputation: 11
This is caused by the behaviour of the AutoCRLF setting. I'm running GitKraken on Windows with Windows Server so I don't need this setting turned on. To resolve I did:
Upvotes: 1
Reputation: 38116
To discard the changes, you can use any of below options:
You can undo the changes by clicking Undo button in Gitkraken.
You can also discard the changes below executing below command in your local repo directory:
#In your local repo
git reset --hard HEAD
Then the working directory will be clean.
Upvotes: 0