[ad_1]
Mastering git
You probably have been working with git, you is perhaps accustomed to git log
command. Past its primary utilization (i.e. plain git log
), the superior use of this command will be fairly highly effective, making navigation of repository’s historical past seamless and informative. On this submit, we’ll be taught a number of helpful methods to make use of git log
to deliver your git information to the subsequent stage.
This submit assumes that the reader, you, are accustomed to the essential utilization of git. Should you want a refresher on git fundamentals, you might wish to try this text first. To make most of this submit, I encourage you to apply utilizing the instructions as you learn by means of the article. We be taught sooner once we are actively practising new information than passively studying by means of it.
We are going to use certainly one of my favorite GitHub repository: ABSphreak/readme-jokes: 😄 Jokes in your GitHub READMEs to show the usage of instructions. This superior light-weight repository allowed me to incorporate random programming jokes in my GitHub profile. Let’s begin by cloning the repo domestically, go contained in the repository and run easy git log
to refresh how the command outputs seem like:
git clone https://github.com/ABSphreak/readme-jokes
cd readme-jokes
git log
The output rapidly fills up our window and is bit wordy. Some particulars akin to electronic mail tackle within the output will not be notably helpful more often than not. Let’s discover ways to get extra succinct log.
Should you merely wish to verify earlier commit messages with out additional particulars, we will add --oneline
choice to get extra concise output:
git log --oneline
[ad_2]