|
Initial Commit
| https://initialcommit.com/ |
| HOME | https://initialcommit.com/ |
| EXPLORE | https://initialcommit.com/learn/git/animated-cheat-sheet |
| Animated Git Cheat Sheet | https://initialcommit.com/learn/git/animated-cheat-sheet |
| Visual Git command reference | https://initialcommit.com/learn/git/visual-command-reference |
| Git command demos | https://initialcommit.com/tools/git-sim/viewer#commands |
| LEARN | https://initialcommit.com/learn/git |
| Git lessons | https://initialcommit.com/learn/git |
| Git workflow demos | https://initialcommit.com/tools/git-sim/viewer#workflows |
| Git commands | https://initialcommit.com/learn/git/commands |
| Git articles | https://initialcommit.com/learn/git/articles |
| Git basics | https://initialcommit.com/learn/git/basics |
| Working with a team | https://initialcommit.com/learn/git/team |
| Getting unstuck | https://initialcommit.com/learn/git/rescue |
| All Git topics | https://initialcommit.com/learn/git/topics |
| Python | https://initialcommit.com/cluster/python |
| Java | https://initialcommit.com/cluster/java |
| Amazon Web Services (AWS) | https://initialcommit.com/cluster/amazon-web-services-aws |
| Spring Boot | https://initialcommit.com/cluster/spring-boot |
| General Programming | https://initialcommit.com/cluster/general-programming |
| History of Programming | https://initialcommit.com/cluster/history-of-programming |
| JavaScript & Node.js | https://initialcommit.com/cluster/javascript |
| Vim | https://initialcommit.com/cluster/vim |
| DEVELOP | https://initialcommit.com/tools |
| git-sim | https://initialcommit.com/tools/git-sim |
| git-sim viewer | https://initialcommit.com/tools/git-sim/viewer |
| git-sim live | https://initialcommit.com/tools/git-sim#live |
| git-sim agentic | https://initialcommit.com/tools/git-sim#agents |
| git-sim → VS Code | https://initialcommit.com/tools/git-sim#vscode |
| git-dummy | https://initialcommit.com/tools/git-dummy |
| Devlands | https://devlands.com |
| All tools | https://initialcommit.com/tools |
| BOOKS | https://initialcommit.com/store?type=book |
| BLOG | https://initialcommit.com/blog |
| ABOUT | https://initialcommit.com/about |
| CONTACT | https://initialcommit.com/contact |
| Blog RSS | https://initialcommit.com/blog/rss.xml |
|
Git command
git init
Where every repository starts
| https://initialcommit.com/learn/git/commands/git-init |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git clone
A full copy, history and all
| https://initialcommit.com/learn/git/commands/git-clone |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git config
Telling Git who you are
| https://initialcommit.com/learn/git/commands/git-config |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git status
Reading the three lists
| https://initialcommit.com/learn/git/commands/git-status |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git add
The pause between editing and committing
| https://initialcommit.com/learn/git/commands/git-add |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git commit
Taking the snapshot
| https://initialcommit.com/learn/git/commands/git-commit |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git commit -a
Skipping the git add step
| https://initialcommit.com/learn/git/commands/git-commit-all |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git rm
Removing a file from the repository and the disk
| https://initialcommit.com/learn/git/commands/git-rm |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git rm --cached
Stop tracking a file, keep it on disk
| https://initialcommit.com/learn/git/commands/git-rm-cached |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git mv
How Git renames a file
| https://initialcommit.com/learn/git/commands/git-mv |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git clean
Deleting the files Git has never heard of
| https://initialcommit.com/learn/git/commands/git-clean |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git clean -fd
Untracked folders go too
| https://initialcommit.com/learn/git/commands/git-clean-directories |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git clean -n
The preview before the delete
| https://initialcommit.com/learn/git/commands/git-clean-dry-run |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git log
Reading history backwards
| https://initialcommit.com/learn/git/commands/git-log |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git show
Open any object Git has stored
| https://initialcommit.com/learn/git/commands/git-show |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git blame
Which commit last touched this line
| https://initialcommit.com/learn/git/commands/git-blame |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git bisect
Binary search for the commit that broke it
| https://initialcommit.com/learn/git/commands/git-bisect |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git diff
What changed, and compared to what
| https://initialcommit.com/learn/git/commands/git-diff |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git branch
A name pointing at a commit
| https://initialcommit.com/learn/git/commands/git-branch |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git switch
Change branches, nothing else
| https://initialcommit.com/learn/git/commands/git-switch |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git switch -c
A new branch from where you are
| https://initialcommit.com/learn/git/commands/git-switch-c |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git branch -m
A new name, the same commits
| https://initialcommit.com/learn/git/commands/git-branch-rename |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git branch -d
Git checks before it deletes
| https://initialcommit.com/learn/git/commands/git-branch-delete |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git branch -D
Deleting a branch Git would rather keep
| https://initialcommit.com/learn/git/commands/git-branch-delete-force |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git switch --detach
Detached HEAD, on purpose
| https://initialcommit.com/learn/git/commands/git-switch-detach |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git checkout
The Swiss army knife that moves HEAD
| https://initialcommit.com/learn/git/commands/git-checkout |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git checkout -b
Branch and switch in one move
| https://initialcommit.com/learn/git/commands/git-checkout-b |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git checkout
Stepping off your branch into detached HEAD
| https://initialcommit.com/learn/git/commands/git-checkout-detached |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git merge
How two branches become one
| https://initialcommit.com/learn/git/commands/git-merge |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
Fast-forward merges
When merging just moves a label
| https://initialcommit.com/learn/git/commands/git-merge-fast-forward |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git merge --no-ff
The merge commit you asked for
| https://initialcommit.com/learn/git/commands/git-merge-no-ff |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git merge --squash
A whole branch as one staged change
| https://initialcommit.com/learn/git/commands/git-merge-squash |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git merge --continue
Finishing the merge you fixed
| https://initialcommit.com/learn/git/commands/git-merge-continue |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git merge --abort
Backing out of a conflicted merge
| https://initialcommit.com/learn/git/commands/git-merge-abort |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git rebase
Your commits, replayed
| https://initialcommit.com/learn/git/commands/git-rebase |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git rebase -i
Editing history with a to-do list
| https://initialcommit.com/learn/git/commands/git-rebase-interactive |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git rebase --onto
Moving only part of a branch
| https://initialcommit.com/learn/git/commands/git-rebase-onto |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git rebase --continue
Picking up where the conflict stopped you
| https://initialcommit.com/learn/git/commands/git-rebase-continue |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git rebase --skip
Leaving the conflicting commit behind
| https://initialcommit.com/learn/git/commands/git-rebase-skip |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git rebase --abort
Back to where the rebase started
| https://initialcommit.com/learn/git/commands/git-rebase-abort |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git cherry-pick
Apply one commit's change to another branch
| https://initialcommit.com/learn/git/commands/git-cherry-pick |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git cherry-pick --abort
Calling off a pick that conflicted
| https://initialcommit.com/learn/git/commands/git-cherry-pick-abort |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git cherry-pick --continue
Finishing a pick that conflicted
| https://initialcommit.com/learn/git/commands/git-cherry-pick-continue |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git cherry-pick A..B
Applying a run of commits
| https://initialcommit.com/learn/git/commands/git-cherry-pick-range |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git remote add
A nickname for another repository
| https://initialcommit.com/learn/git/commands/git-remote-add |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git fetch
The safe half of git pull
| https://initialcommit.com/learn/git/commands/git-fetch |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git fetch --prune
Clearing out remote branches that are gone
| https://initialcommit.com/learn/git/commands/git-fetch-prune |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git pull
Fetch, then merge, in one command
| https://initialcommit.com/learn/git/commands/git-pull |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git pull --rebase
Your commits on top, no merge commit
| https://initialcommit.com/learn/git/commands/git-pull-rebase |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git push
Sending your commits up
| https://initialcommit.com/learn/git/commands/git-push |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git push -u
Publishing a new branch
| https://initialcommit.com/learn/git/commands/git-push-set-upstream |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git push --force-with-lease
The force push with a seatbelt
| https://initialcommit.com/learn/git/commands/git-push-force-with-lease |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git push --force
Rewriting history other people have
| https://initialcommit.com/learn/git/commands/git-push-force |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git push --delete
Removing a branch from the remote
| https://initialcommit.com/learn/git/commands/git-push-delete |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git tag
A name that never moves
| https://initialcommit.com/learn/git/commands/git-tag |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git tag -d
Removing a tag, here and on the remote
| https://initialcommit.com/learn/git/commands/git-tag-delete |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git push --tags
Sending your tags to the remote
| https://initialcommit.com/learn/git/commands/git-push-tags |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git stash
A drawer for half-finished work
| https://initialcommit.com/learn/git/commands/git-stash |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git stash -u
Stashing the new files too
| https://initialcommit.com/learn/git/commands/git-stash-include-untracked |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git stash list
Reading the shelf
| https://initialcommit.com/learn/git/commands/git-stash-list |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git stash pop
Getting the drawer back out
| https://initialcommit.com/learn/git/commands/git-stash-pop |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git stash apply
Restore the changes, keep the entry
| https://initialcommit.com/learn/git/commands/git-stash-apply |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git stash drop
Throwing one stash away
| https://initialcommit.com/learn/git/commands/git-stash-drop |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git restore --staged
Unstage, keep the edits
| https://initialcommit.com/learn/git/commands/git-restore-staged |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git restore
Throwing away edits on purpose
| https://initialcommit.com/learn/git/commands/git-restore |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git commit --amend
Fixing the last commit in place
| https://initialcommit.com/learn/git/commands/git-commit-amend |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git reset HEAD file
Unstaging one file
| https://initialcommit.com/learn/git/commands/git-reset-file |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git reset --soft
Uncommit without touching a file
| https://initialcommit.com/learn/git/commands/git-reset-soft |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git reset
The default that keeps your edits
| https://initialcommit.com/learn/git/commands/git-reset |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git reset --hard
The one that actually deletes
| https://initialcommit.com/learn/git/commands/git-reset-hard |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git revert
Undo by adding, not deleting
| https://initialcommit.com/learn/git/commands/git-revert |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git revert -m 1
Undoing a whole merge
| https://initialcommit.com/learn/git/commands/git-revert-merge |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git reflog
Git's black box recorder
| https://initialcommit.com/learn/git/commands/git-reflog |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git worktree add
Two branches checked out at once
| https://initialcommit.com/learn/git/commands/git-worktree-add |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
Git command
git worktree remove
Putting the second directory away
| https://initialcommit.com/learn/git/commands/git-worktree-remove |
|
Jacob Stopak
| https://initialcommit.com/blog/author/jacobstopak |
|
| https://github.com/initialcommit-com |
|
| https://www.linkedin.com/in/jacob-stopak-6361b4b7 |
|
| https://www.instagram.com/initialcommit |
|
| https://www.facebook.com/initcommit |
|
| https://www.reddit.com/user/initcommit |
|
| https://twitter.com/initcommit |
| HOME | https://initialcommit.com/ |
| EXPLORE | https://initialcommit.com/learn/git/animated-cheat-sheet |
| Animated Git Cheat Sheet | https://initialcommit.com/learn/git/animated-cheat-sheet |
| Visual Git command reference | https://initialcommit.com/learn/git/visual-command-reference |
| Git command demos | https://initialcommit.com/tools/git-sim/viewer#commands |
| LEARN | https://initialcommit.com/learn/git |
| Git lessons | https://initialcommit.com/learn/git |
| Git workflow demos | https://initialcommit.com/tools/git-sim/viewer#workflows |
| Git commands | https://initialcommit.com/learn/git/commands |
| Git articles | https://initialcommit.com/learn/git/articles |
| Git basics | https://initialcommit.com/learn/git/basics |
| Working with a team | https://initialcommit.com/learn/git/team |
| Getting unstuck | https://initialcommit.com/learn/git/rescue |
| All Git topics | https://initialcommit.com/learn/git/topics |
| Python | https://initialcommit.com/cluster/python |
| Java | https://initialcommit.com/cluster/java |
| Amazon Web Services (AWS) | https://initialcommit.com/cluster/amazon-web-services-aws |
| Spring Boot | https://initialcommit.com/cluster/spring-boot |
| General Programming | https://initialcommit.com/cluster/general-programming |
| History of Programming | https://initialcommit.com/cluster/history-of-programming |
| JavaScript & Node.js | https://initialcommit.com/cluster/javascript |
| Vim | https://initialcommit.com/cluster/vim |
| DEVELOP | https://initialcommit.com/tools |
| git-sim | https://initialcommit.com/tools/git-sim |
| git-sim viewer | https://initialcommit.com/tools/git-sim/viewer |
| git-sim live | https://initialcommit.com/tools/git-sim#live |
| git-sim agentic | https://initialcommit.com/tools/git-sim#agents |
| git-sim → VS Code | https://initialcommit.com/tools/git-sim#vscode |
| git-dummy | https://initialcommit.com/tools/git-dummy |
| Devlands | https://devlands.com |
| All tools | https://initialcommit.com/tools |
| BOOKS | https://initialcommit.com/store?type=book |
| BLOG | https://initialcommit.com/blog |
| ABOUT | https://initialcommit.com/about |
| CONTACT | https://initialcommit.com/contact |
| Privacy Policy | https://initialcommit.com/privacy-policy |