composer install --ignore-platform-reqs
Commit all files (new install):
git add --all
git commit -am "[commit message]"
inspect all changes:
git add . //stage all files changes up to that point
git status //see new / modified / deleted files - splits in two sections - staged for changes vs not stage for commit
git diff master --ignore-space-at-eol //look at all changes staged
Check commit size
git gc
git count-objects -vH
Git sequence:
git add . //add all files
git reset //this means unstage
git config user.email “
my*****@so********.com
”
git config user.name “myname”
git commit --message=”some commit message”
git diff master --ignore-space-at-eol
git checkout . //clear out changes after last commit
git clean -d -f . //clear the untracked files from the local
git checkout development //set files to a certain branch
View all files small to large over 1m
find . -type f -size +1M -printf '%s %p\n' |sort -nr
View all git objects small to large
git rev-list --objects --all \
| git cat-file --batch-check='%(objecttype) %(objectname) %(objectsize) %(rest)' \
| sed -n 's/^blob //p' \
| sort --numeric-sort --key=2 \
| cut -c 1-12,41- \
| numfmt --field=2 --to=iec-i --suffix=B --padding=7 --round=nearest