# Git
It outclasses SCM tools like Subversion, CVS, Perforce, and ClearCase with features like cheap local branching, convenient staging areas, and multiple workflows. - Home
Git branches are pointer to a commit - Git Branches Have No Rules - Git Branches: Intuition and Reality
see also
- git absorb / HN - You have a feature branch with a few commits. Your teammate reviewed the branch and pointed out a few bugs. You have fixes for the bugs, but you don’t want to shove them all into an opaque commit that says fixes, because you believe in atomic commits.
- git worktree / HN - Worktrees allow you to have a separate working directory (and staging area) for each branch you’re actively working on.
- Git rebase, what can go wrong?
- Git In Two Minutes
- lazygit - A simple terminal UI for git commands
- vs BitKeeper
- git-flow (2010) - This was terrible at the time and it remains terrible now. Not to be confused with GitHub flow which is simpler.
- Committing without git
Config
Diff tool
- Configuring diff tool
- How do I view ‘git diff’ output with my preferred diff tool/ viewer?
- How Git cherry-pick and revert use 3-way merge
Meld understands git and provides navigating around the recent changes.
mtime
see Why isn’t Git preserving modification time on files? - short to stay compatible with make
If you wan’t original times (rather than checkout times) use this tool
Basic Cmd
Undo last commit, keeping change
see also: How do I undo the most recent local commits in Git?
Abort merge
Checkout branch
Add origin as new github repo
Remove origin
change a Git repo’s origin
Written on October 30, 2018, Last update on November 1, 2024
git
diff
vcs