Last active
July 31, 2023 03:03
-
-
Save rizkysyazuli/884280124e59f974a0574f79c345015d to your computer and use it in GitHub Desktop.
[Shell - Git] Obscure but useful Git commands #git #shell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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