Here’s some simple things to do with git

When updating a repo this is the simplest way to do it

git config --global FIRST_NAME LAST_NAME | this sets the person who made the commit (first/last name)

git config --global [email protected] | this sets the person who made the commit (email)

git diff | this is the see any lines you’ve changed

git status | this will show which branch your on and which files have changed (not the contents of the file like git diff, but just the files themselves)

git add . | this adds everything you’ve changed in the directory to the commit

git commit -m 'LEAVE MESSAGE HERE' | this is where you put what you’ve updated

git push | this pushes the changes

export GIT_SSH_COMMAND='ssh -i /PATH/TO/SSH/PRIV_KEY -o UserKnownHostsFile=/dev/null -o LogLevel=quiet -o StrictHostKeyChecking=no' | this allows you to define the SSH file location also disables hosts checking so you don’t have to click yes for connecting to a new host

git revert --no-commit COMMIT_HASH..HEAD | revert back to git commit, then you have to commit like normal git commit -m 'message here'; git push