diff -u file-1.js file-2.js
diff -u file-1.js file-2.js > changes.diff
patch file-1.js < changes.diff
git init
git add .
git status
git log or git show hash-id
git rm
git mv file-1.js new-file-name.js
git restore file-1.js
git restore --staged file-1.js
git commit --amend
git revert hash-id
git branch new-branch-name
git branch
git branch -r
git checkout branch-name
git checkout -b new-branch-name
git branch -d branch-name
git remote show origin
git fetch
git log origin/main
git merge origin/main
git pull
git remote update
git rebase -i HEAD~2
git remote remove origin
git remote add origin https://<TOKEN>@github.com/<USERNAME>/<REPO>.git
git remote -v
git stash -u
git stash list
git fetch
git checkout origin/main
git branch main
git merge origin/main
git stash apply 0