Enough cheat sheets out there, https://jdsalaro.com/blog/git-cheat-sheet.html looks interesting
This is just other voodoo I've used before
# Number of commits ahead / behind
git rev-list --left-right --count main...mybranch
import os | |
import sys | |
import json | |
import time | |
import shutil | |
import subprocess | |
from pathlib import Path | |
import argparse | |
""" |
Enough cheat sheets out there, https://jdsalaro.com/blog/git-cheat-sheet.html looks interesting
This is just other voodoo I've used before
# Number of commits ahead / behind
git rev-list --left-right --count main...mybranch