Git branch exists

PHOTO EMBED

Mon May 02 2022 08:09:04 GMT+0000 (Coordinated Universal Time)

Saved by @Rohith #bash

if git show-ref --quiet <branch_name>; then
	echo branch exists
fi
content_copyCOPY

Make use of retval instead of handling console output.

https://stackoverflow.com/a/41991368