<div class="iteye-blog-content-contain" style="font-size: 14px">
git diff Compare the difference between the work area [local file] and the staging area file.
git diff HEAD -- readme.txt Compare the difference between the version the workspace and the repository are currently pointing to.
In conclusion, both methods will compare local content.
</div>
Beginners to git --- Points to pay attention to when using git
Guess you like
Origin http://10.200.1.11:23101/article/api/json?id=326801682&siteId=291194637
Recommended
Ranking