Check if git repo has new commits
05/Mar/2023
cd /your/repo
git fetch
git diff --quiet main origin/main || echo changes detected
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
05/Mar/2023
cd /your/repo
git fetch
git diff --quiet main origin/main || echo changes detected