Skip to content

Instantly share code, notes, and snippets.

@rizkysyazuli
Last active July 31, 2023 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rizkysyazuli/884280124e59f974a0574f79c345015d to your computer and use it in GitHub Desktop.
Save rizkysyazuli/884280124e59f974a0574f79c345015d to your computer and use it in GitHub Desktop.
[Shell - Git] Obscure but useful Git commands #git #shell
# check repo size
git count-objects -vH
# clone a mirror copy of a repo
git clone --mirror <repo-url>
# git merge dry run
git merge --no-commit --no-ff branch_name
# git export as zip
git archive --format zip --output /full/path/to/zipfile.zip master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment