SETUP LOCAL REPO

git init

git remote add origin <URL>

ALSO git remote -v

ALSO git remote remove origin

OR git clone <URL> / creates a folder that holds the entire project

PULL

git fetch origin main

git reset --hard FETCH_HEAD

ALSO git pull --rebase to pull any changes that happened without overriding your local changes

PUSH

git add <. / --all / PATH> [help]

git commit -m "<MESSAGE>"

git push -u origin main

OR git push -u origin HEAD:master

OTHER GIT STUFF

git rm -r --cache <PATH> fix git tracking files that should be ignored

JAR

unzip <JAR>.jar -d <DIR>

jar cvf <JAR>.jar -C <DIR>/ .