Get the App
SLTechnology News&Howtos  ›  Development  › 

How to check the files pulled down after git-pull? what are the changes?

Shulou Source: shulou.com Published: 2022-06-03 02:40:07 09月28日 Update

Xiaobian to share with you how to view the files pulled down after git-pull, I hope you have gained something after reading this article, let's discuss it together!

git pull automatically performs git add /rm and git commit operations on the modified files pulled down. So the files pulled down have those changes that can be viewed in a way that attributes them to the comparison of the last submission.

git diff HEAD shows the difference between the working directory and the git repository, while git diff HEAD^shows the difference between the working directory and the git repository before the last commit. So after git pull, we can use git diff HEAD^to see what specific changes have been made to the pulled file.

After reading this article, I believe you have a certain understanding of "how to view the files pulled down after git-pull". If you want to know more about it, welcome to pay attention to the industry information channel. Thank you for reading!

Tags: Documents between warehouses differences catalogs articles previous work can be passed finished ways more knowledge industry information channels channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Xiaomi Shulou Technology NVidia Redmi MySQL