marcusshepp
8/9/2017 - 3:33 PM

suppressing the possible error of a command

suppressing the possible error of a command

git log @{u}.. 2> /dev/null

# if git log fails, it will fail silently.
# 2> means redirecting the output of stderr.
# https://stackoverflow.com/questions/40714202/what-is-the-meaning-of-2-in-2-dev-null