René's URL Explorer Experiment


Title: Git commands, one page each | Learn Git

Open Graph Title: Git commands, one page each | Learn Git

X Title: Git commands, one page each | Learn Git

Description: Every common Git command on a page of its own: what it does to your repo, played out on an interactive graph, with how risky it is and how to undo it.

Open Graph Description: Every common Git command on a page of its own: what it does to your repo, played out on an interactive graph.

X Description: Every common Git command on a page of its own: what it does to your repo, played out on an interactive graph.

Mail addresses
jacob@initialcommit.io

Opengraph URL: https://initialcommit.com/learn/git/commands

direct link

Domain: initialcommit.com


Hey, it has json ld scripts:
		{
		  "@context": "https://schema.org",
		  "@type": "CollectionPage",
		  "name": "Git commands",
		  "url": "https:\/\/initialcommit.com\/learn\/git\/commands",
		  "isPartOf": { "@type": "WebSite", "name": "Initial Commit", "url": "https:\/\/initialcommit.com" },
		  "breadcrumb": { "@type": "BreadcrumbList", "itemListElement": [
		    { "@type": "ListItem", "position": 1, "name": "Learn Git", "item": "https:\/\/initialcommit.com\/learn\/git" },
		    { "@type": "ListItem", "position": 2, "name": "Git commands", "item": "https:\/\/initialcommit.com\/learn\/git\/commands" }
		  ] }
		}
		

NoneIE=edge
theme-color#ffffff
ic-lesson-total16
ic-lesson-paths/learn/git/levels/git-overview,/learn/git/levels/init-and-config,/learn/git/levels/add-and-commit,/learn/git/levels/log-and-status,/learn/git/levels/clone-and-remote,/learn/git/levels/push-and-pull,/learn/git/levels/branch-and-switch,/learn/git/levels/merge,/learn/git/levels/tag,/learn/git/levels/stash,/learn/git/levels/restore,/learn/git/levels/revert,/learn/git/levels/reset,/learn/git/levels/rebase,/learn/git/levels/detached-head,/learn/git/levels/remove-and-rename
ic-lesson/learn/git/levels/remove-and-rename|Level 16: Remove & rename
og:typewebsite
og:site_nameInitial Commit
og:imagehttps://initialcommit.com/images/share/share-commands-2e673cf8.png
twitter:cardsummary_large_image

Links:

Initial Commit https://initialcommit.com/
HOMEhttps://initialcommit.com/
EXPLOREhttps://initialcommit.com/learn/git/animated-cheat-sheet
Animated Git Cheat Sheethttps://initialcommit.com/learn/git/animated-cheat-sheet
Visual Git command referencehttps://initialcommit.com/learn/git/visual-command-reference
Git command demoshttps://initialcommit.com/tools/git-sim/viewer#commands
LEARNhttps://initialcommit.com/learn/git
Git lessonshttps://initialcommit.com/learn/git
Git workflow demoshttps://initialcommit.com/tools/git-sim/viewer#workflows
Git commandshttps://initialcommit.com/learn/git/commands
Git articleshttps://initialcommit.com/learn/git/articles
Git basicshttps://initialcommit.com/learn/git/basics
Working with a teamhttps://initialcommit.com/learn/git/team
Getting unstuckhttps://initialcommit.com/learn/git/rescue
All Git topicshttps://initialcommit.com/learn/git/topics
Pythonhttps://initialcommit.com/cluster/python
Javahttps://initialcommit.com/cluster/java
Amazon Web Services (AWS)https://initialcommit.com/cluster/amazon-web-services-aws
Spring Boothttps://initialcommit.com/cluster/spring-boot
General Programminghttps://initialcommit.com/cluster/general-programming
History of Programminghttps://initialcommit.com/cluster/history-of-programming
JavaScript & Node.jshttps://initialcommit.com/cluster/javascript
Vimhttps://initialcommit.com/cluster/vim
DEVELOPhttps://initialcommit.com/tools
git-simhttps://initialcommit.com/tools/git-sim
git-sim viewerhttps://initialcommit.com/tools/git-sim/viewer
git-sim livehttps://initialcommit.com/tools/git-sim#live
git-sim agentichttps://initialcommit.com/tools/git-sim#agents
git-sim → VS Codehttps://initialcommit.com/tools/git-sim#vscode
git-dummyhttps://initialcommit.com/tools/git-dummy
Devlandshttps://devlands.com
All toolshttps://initialcommit.com/tools
BOOKShttps://initialcommit.com/store?type=book
BLOGhttps://initialcommit.com/blog
ABOUThttps://initialcommit.com/about
CONTACThttps://initialcommit.com/contact
Blog RSShttps://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
HOMEhttps://initialcommit.com/
EXPLOREhttps://initialcommit.com/learn/git/animated-cheat-sheet
Animated Git Cheat Sheethttps://initialcommit.com/learn/git/animated-cheat-sheet
Visual Git command referencehttps://initialcommit.com/learn/git/visual-command-reference
Git command demoshttps://initialcommit.com/tools/git-sim/viewer#commands
LEARNhttps://initialcommit.com/learn/git
Git lessonshttps://initialcommit.com/learn/git
Git workflow demoshttps://initialcommit.com/tools/git-sim/viewer#workflows
Git commandshttps://initialcommit.com/learn/git/commands
Git articleshttps://initialcommit.com/learn/git/articles
Git basicshttps://initialcommit.com/learn/git/basics
Working with a teamhttps://initialcommit.com/learn/git/team
Getting unstuckhttps://initialcommit.com/learn/git/rescue
All Git topicshttps://initialcommit.com/learn/git/topics
Pythonhttps://initialcommit.com/cluster/python
Javahttps://initialcommit.com/cluster/java
Amazon Web Services (AWS)https://initialcommit.com/cluster/amazon-web-services-aws
Spring Boothttps://initialcommit.com/cluster/spring-boot
General Programminghttps://initialcommit.com/cluster/general-programming
History of Programminghttps://initialcommit.com/cluster/history-of-programming
JavaScript & Node.jshttps://initialcommit.com/cluster/javascript
Vimhttps://initialcommit.com/cluster/vim
DEVELOPhttps://initialcommit.com/tools
git-simhttps://initialcommit.com/tools/git-sim
git-sim viewerhttps://initialcommit.com/tools/git-sim/viewer
git-sim livehttps://initialcommit.com/tools/git-sim#live
git-sim agentichttps://initialcommit.com/tools/git-sim#agents
git-sim → VS Codehttps://initialcommit.com/tools/git-sim#vscode
git-dummyhttps://initialcommit.com/tools/git-dummy
Devlandshttps://devlands.com
All toolshttps://initialcommit.com/tools
BOOKShttps://initialcommit.com/store?type=book
BLOGhttps://initialcommit.com/blog
ABOUThttps://initialcommit.com/about
CONTACThttps://initialcommit.com/contact
Privacy Policyhttps://initialcommit.com/privacy-policy

Viewport: width=device-width, initial-scale=1.0


URLs of crawlers that visited me.