Created
July 29, 2025 06:26
-
-
Save CarsonSlovoka/b95db1e46caa6ddac4bc1ef8a64ddc73 to your computer and use it in GitHub Desktop.
git clone *.xlsx
This file contains hidden or 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
git rev-list HEAD --count # 1722 | |
git log --oneline --since="2025-03-20" --reverse | head -n 1 | |
# 40b3136 | |
echo "1722 - 1367" | bc | |
# 355 | |
git clone file://$(realpath ..) --depth=355 --no-checkout ~/Downloads/temp/test-git/ |
This file contains hidden or 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
git init | |
{ | |
echo '[remote "origin"]' | |
echo ' url = file:///path/to/project' | |
echo ' fetch = +refs/heads/*:refs/remotes/origin/*' | |
echo ' partialclonefilter = blob:none' | |
} >> .git/config | |
git sparse-checkout init | |
{ | |
echo '*.xlsx' | |
} > .git/info/sparse-checkout | |
git pull origin master | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment