79419118

Date: 2025-02-06 19:31:15
Score: 2
Natty:
Report link

If the remote is defined in .git/config, you can avoid pinging the remote server with git remote.

if git remote | grep -e "^faraway$" > /dev/null; then ... fi

The ^ and $ prevent matching similar names like longagoandfaraway.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Patrick Callahan