Maven / GIT Interview Questions
How do I view the file changes (diff) before committing in GIT?
Use the git diff comand as shown below.
The above command works only when the file is not added already. If it is added already, use the same command with cached option as shown below.
More Related questions...
git fsckcommand. How do I view the file changes (diff) before committing in GIT? Explain git blame command. What is a pull request in git? What is a .GITKEEP file?