Posts Tagged ‘git’
To compare the last 2 commits in git in a single command, we need to connect the following commands with pipe. git log which lists the commit logs of the git repository, grep commit which gets the lines with the string “commit”, cut -d ” ” -f2 which gets the second column, using a space [...]
Tags: git
