I have committed some code with some format but the origin has some other format. The reviewer is asking me to revert all my changes and I am searching for some UI tool or some way in Git to remove formatting and give the actual result.
相关问题
- How to add working directory to deployment in GitH
- Why does recursive submodule update from github fa
- Extended message for commit via Visual Studio Code
- Emacs shell: save commit message
- Can I organize Git submodules in a flat hierarchy?
相关文章
- 请教Git如何克隆本地库?
- java开发bug问题:GitHub授权登录无法获取授权账号信息?
- Is there a Github markdown language identifier for
- “no implicit conversion of Integer into String” er
- GitHub:Enterprise post-receive hook
- Git Clone Fails: Server Certificate Verification F
- SSIS solution on GIT?
- Is there a version control system abstraction for
If you use
intellij
, consider using theversion control
tool provided by it.The below link details on how to get a diff between two branches. https://stackoverflow.com/a/49642681/2960555
for a single file diff, You can right click on file -> git -> compare.
A new window will gets opened. select ignore options in that.
I think you might have a look at git diff, in particular the two following options:
So running
git diff --ignore-all-space
However, if what you define by formatting is not just whitespace, I guess you have to do it by hand
Kdiff3 is the tool i needed to get my work done This is a GUI tool for UNIX systems which can compare two file remove conflicts check for changes