Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

How does Git view the history of all branches

Shulou Source: shulou.com Published: 2022-06-02 04:39:04 10月04日 Update

This article mainly explains "Git how to view the history of all branches", the content of the explanation is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Git how to view the history of all branches" bar!

Git log

To view the history of commit, you can also add-- oneline, to view it in a concise way

$git log-onelineeddccf5 (HEAD-> master) delete readme70afaaf init readmeb5b7d12 update index501fdac js46995cb (test) add style.css3dccbfc add index

View the history of all branches

Git log-allcommit fe52636baa64e10e5795c26dcf0434aca48dcead (HEAD-> dev) Author: baxiang Date: Wed Dec 12 00:39:25 2018 + 0800 update readmecommit b5b7d12749d468627bf0afd413ba5c2dfa16beaf (master) Author: baxiang Date: Wed Dec 12 00:26:53 2018 + 0800 update index

-n plus numbers only view the last 2 submissions

$git log-n2commit eddccf59f9308c2b9fdd4409f5d167749622c5ee (HEAD-> master) Author: baxiang Date: Fri Dec 21 19:17:57 2018 + 0800 delete readmecommit 70afaaf5cfcf5f11c768a135043f345f4b464606Author: baxiang Date: Fri Dec 21 13:51:18 2018 + 0800 init readme Thank you for reading. This is the content of "how Git views the History of all branches". After the study of this article, I believe you have a deeper understanding of how Git views the historical records of all branches. The specific use situation still needs to be verified by practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

Tags: History branches learning content simplicity and at the same time ideas situations numbers articles ways more knowledge knowledge points articles follow questions practice push Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Apple Linux vpn Xiaomi