I have encountered the following command in an internet tutorial. I couldn't understand how it works.
git log | grep commit > ~/filename.txt
Someone please explain me how it works.
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
You can safely try this out.
Change into a directory with a git repo. Try "git log" to see what ist does. ( Git Basics here )
Then do "git log| grep commit" to see what it does.
Then try the entire command and have a look at the file "filename.txt" that will appear in your home directory.