Git help
commandsDifference of a file in two different Commits
See brief one-line history of last $x$ commits
Viewing commit history w/ git bash
git clone <repository-url>
git clone <repository-url> <local-directory>
git clone --branch <branch-name> <repository-url>
git branch <branch-name>
git checkout -b <branch-name>
git switch -c <branch-name>
git add <file-name>
git commit -m "Commit message"
git commit -am "Commit message"
git push <remote-name> <branch-name>
git push -u <remote-name> <branch-name>
git push --force <remote-name> <branch-name>
git status
git log
git log --oneline
git log --author=<author-name>
git merge <branch-name>
git merge --abort
git merge --no-commit
git rebase <branch-name>
git rebase --continue
git rebase --abort
git stash
git stash apply
git stash drop
git diff > changes.patch
git apply changes.patch
git format-patch <commit>
git remote
git remote add <remote-name> <repository-url>
git remote set-url <remote-name> <repository-url>
git cherry-pick <commit>
git cherry-pick -n <commit>
git cherry-pick -x <commit>
git reset
and git revert
git reset <commit>
git reset --hard <commit>
git revert <commit>