{"id":3204,"date":"2025-12-04T11:53:21","date_gmt":"2025-12-04T10:53:21","guid":{"rendered":"https:\/\/codeflarelimited.com\/blog\/?p=3204"},"modified":"2025-12-04T11:53:25","modified_gmt":"2025-12-04T10:53:25","slug":"complete-git-commands","status":"publish","type":"post","link":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/","title":{"rendered":"Complete Git Commands"},"content":{"rendered":"\n<p><strong>Git<\/strong>&nbsp;is a free, open-source&nbsp;<strong>distributed version control system<\/strong>&nbsp;created by Linus Torvalds.<br>It helps developers:<\/p>\n\n\n\n<p><a href=\"https:\/\/app.codeflarelimited.com\">Learn how to write computer programs<\/a><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Track changes<\/strong>\u00a0in their code over time<\/li>\n\n\n\n<li><strong>Revert<\/strong>\u00a0to previous versions<\/li>\n\n\n\n<li><strong>Collaborate<\/strong>\u00a0with teammates without overwriting each other\u2019s work<\/li>\n\n\n\n<li><strong>Experiment safely<\/strong>\u00a0using branches<\/li>\n\n\n\n<li>Maintain a\u00a0<strong>history<\/strong>\u00a0of updates, features, and fixes<\/li>\n<\/ul>\n\n\n\n<p>With Git, every developer has a&nbsp;<strong>full copy of the repository<\/strong>&nbsp;on their machine, making it fast, reliable, and able to work offline.<\/p>\n\n\n\n<p><a href=\"https:\/\/codeflarelimited.com\">Learn how to use Git version control<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What Git Is Used For<\/h2>\n\n\n\n<p>Git is commonly used to:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 1.&nbsp;<strong>Save and manage project versions<\/strong><\/h3>\n\n\n\n<p>Every commit records a snapshot of your project.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 2.&nbsp;<strong>Work in branches without conflicts<\/strong><\/h3>\n\n\n\n<p>Develop features independently and merge them later.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 3.&nbsp;<strong>Collaborate on the same codebase<\/strong><\/h3>\n\n\n\n<p>Multiple developers can work simultaneously without collisions.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 4.&nbsp;<strong>Backup code on remote services<\/strong><\/h3>\n\n\n\n<p>Platforms like GitHub, GitLab, Bitbucket store your code online.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u2705 5.&nbsp;<strong>Review and audit changes<\/strong><\/h3>\n\n\n\n<p>Git logs, diffs, and blame help you track who changed what \u2014 and why.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Comprehensive List of Git Commands and Their Usage<\/h2>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>1. Configuration Commands<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git config --global user.name \"Name\"<\/code><\/td><td>Set your Git username<\/td><\/tr><tr><td><code>git config --global user.email \"email@example.com\"<\/code><\/td><td>Set your Git email<\/td><\/tr><tr><td><code>git config --list<\/code><\/td><td>Display all Git configurations<\/td><\/tr><tr><td><code>git config --global core.editor \"editor\"<\/code><\/td><td>Set default text editor<\/td><\/tr><tr><td><code>git config --global color.ui auto<\/code><\/td><td>Enable colored output<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>2. Getting Help<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git help &lt;command&gt;<\/code><\/td><td>Help for a command<\/td><\/tr><tr><td><code>git &lt;command&gt; --help<\/code><\/td><td>Detailed manual<\/td><\/tr><tr><td><code>git help -a<\/code><\/td><td>List all Git commands<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>3. Repository Setup<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git init<\/code><\/td><td>Initialize a new local repository<\/td><\/tr><tr><td><code>git clone &lt;url&gt;<\/code><\/td><td>Clone an existing repository<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>4. Basic Snapshotting (Staging &amp; Committing)<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git add &lt;file&gt;<\/code><\/td><td>Stage a file<\/td><\/tr><tr><td><code>git add .<\/code><\/td><td>Stage all changes<\/td><\/tr><tr><td><code>git status<\/code><\/td><td>Show current status of the repo<\/td><\/tr><tr><td><code>git commit -m \"message\"<\/code><\/td><td>Commit staged changes<\/td><\/tr><tr><td><code>git commit -am \"message\"<\/code><\/td><td>Add &amp; commit tracked files<\/td><\/tr><tr><td><code>git rm &lt;file&gt;<\/code><\/td><td>Remove a file and stage the deletion<\/td><\/tr><tr><td><code>git mv &lt;old&gt; &lt;new&gt;<\/code><\/td><td>Rename a file<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>5. Branching &amp; Merging<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git branch<\/code><\/td><td>List branches<\/td><\/tr><tr><td><code>git branch &lt;name&gt;<\/code><\/td><td>Create a new branch<\/td><\/tr><tr><td><code>git branch -d &lt;name&gt;<\/code><\/td><td>Delete a branch<\/td><\/tr><tr><td><code>git checkout &lt;branch&gt;<\/code><\/td><td>Switch to a branch<\/td><\/tr><tr><td><code>git checkout -b &lt;branch&gt;<\/code><\/td><td>Create and switch to a branch<\/td><\/tr><tr><td><code>git switch &lt;branch&gt;<\/code><\/td><td>Modern way to switch branches<\/td><\/tr><tr><td><code>git switch -c &lt;branch&gt;<\/code><\/td><td>Modern way to create + switch<\/td><\/tr><tr><td><code>git merge &lt;branch&gt;<\/code><\/td><td>Merge a branch into current one<\/td><\/tr><tr><td><code>git rebase &lt;branch&gt;<\/code><\/td><td>Reapply commits on top of another branch<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>6. Remote Repositories<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git remote<\/code><\/td><td>List remotes<\/td><\/tr><tr><td><code>git remote -v<\/code><\/td><td>List remote URLs<\/td><\/tr><tr><td><code>git remote add origin &lt;url&gt;<\/code><\/td><td>Connect local repo to remote<\/td><\/tr><tr><td><code>git remote remove &lt;name&gt;<\/code><\/td><td>Remove a remote<\/td><\/tr><tr><td><code>git fetch<\/code><\/td><td>Download changes without merging<\/td><\/tr><tr><td><code>git pull<\/code><\/td><td>Fetch + merge changes<\/td><\/tr><tr><td><code>git pull --rebase<\/code><\/td><td>Fetch + rebase<\/td><\/tr><tr><td><code>git push<\/code><\/td><td>Upload commits to remote<\/td><\/tr><tr><td><code>git push -u origin &lt;branch&gt;<\/code><\/td><td>Push branch and set upstream<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\ud83d\udd35&nbsp;<strong>7. Inspecting Changes<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git log<\/code><\/td><td>Show commit history<\/td><\/tr><tr><td><code>git log --oneline<\/code><\/td><td>Short commit history<\/td><\/tr><tr><td><code>git log --graph --oneline<\/code><\/td><td>Visual commit tree<\/td><\/tr><tr><td><code>git diff<\/code><\/td><td>Show unstaged changes<\/td><\/tr><tr><td><code>git diff --staged<\/code><\/td><td>Show staged changes<\/td><\/tr><tr><td><code>git show &lt;commit&gt;<\/code><\/td><td>Show specific commit details<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>8. Undoing Changes<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git restore &lt;file&gt;<\/code><\/td><td>Undo unstaged changes<\/td><\/tr><tr><td><code>git restore --staged &lt;file&gt;<\/code><\/td><td>Unstage a file<\/td><\/tr><tr><td><code>git reset &lt;file&gt;<\/code><\/td><td>Unstage a file (older method)<\/td><\/tr><tr><td><code>git reset --hard<\/code><\/td><td>Reset working directory + history<\/td><\/tr><tr><td><code>git revert &lt;commit&gt;<\/code><\/td><td>Create new commit that undoes previous one<\/td><\/tr><tr><td><code>git checkout &lt;commit&gt;<\/code><\/td><td>View past version (detached HEAD)<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>9. Stashing Work<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git stash<\/code><\/td><td>Temporarily save uncommitted changes<\/td><\/tr><tr><td><code>git stash apply<\/code><\/td><td>Reapply latest stash<\/td><\/tr><tr><td><code>git stash list<\/code><\/td><td>Show all stashes<\/td><\/tr><tr><td><code>git stash drop<\/code><\/td><td>Delete a stash<\/td><\/tr><tr><td><code>git stash pop<\/code><\/td><td>Apply + delete stash<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>10. Tagging Versions<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git tag<\/code><\/td><td>List tags<\/td><\/tr><tr><td><code>git tag &lt;name&gt;<\/code><\/td><td>Create a lightweight tag<\/td><\/tr><tr><td><code>git tag -a &lt;name&gt; -m \"message\"<\/code><\/td><td>Create annotated tag<\/td><\/tr><tr><td><code>git push --tags<\/code><\/td><td>Push tags to remote<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>11. Git Ignore<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>.gitignore<\/code><\/td><td>File that tells Git what to ignore<\/td><\/tr><tr><td><code>git rm -r --cached .<\/code><\/td><td>Reapply .gitignore to tracked files<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>12. Collaboration \/ Fixing Conflicts<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><em>Manual editing<\/em><\/td><td>Resolve merge conflicts<\/td><\/tr><tr><td><code>git mergetool<\/code><\/td><td>Use merge tool<\/td><\/tr><tr><td><code>git rebase --continue<\/code><\/td><td>Continue after conflict fix<\/td><\/tr><tr><td><code>git rebase --abort<\/code><\/td><td>Abort rebase<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>13. Advanced Tools<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git cherry-pick &lt;commit&gt;<\/code><\/td><td>Apply specific commit onto another branch<\/td><\/tr><tr><td><code>git bisect<\/code><\/td><td>Find bug-causing commit via binary search<\/td><\/tr><tr><td><code>git blame &lt;file&gt;<\/code><\/td><td>Show who edited each line<\/td><\/tr><tr><td><code>git clean -f<\/code><\/td><td>Remove untracked files<\/td><\/tr><tr><td><code>git fsck<\/code><\/td><td>Verify repo integrity<\/td><\/tr><tr><td><code>git gc<\/code><\/td><td>Clean up unnecessary files<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>14. Git Submodules<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git submodule add &lt;url&gt;<\/code><\/td><td>Add a submodule<\/td><\/tr><tr><td><code>git submodule update<\/code><\/td><td>Update submodules<\/td><\/tr><tr><td><code>git submodule init<\/code><\/td><td>Initialize submodules<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>15. Aliases<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table class=\"has-fixed-layout\"><thead><tr><th>Command<\/th><th>Usage<\/th><\/tr><\/thead><tbody><tr><td><code>git config --global alias.st status<\/code><\/td><td>Create&nbsp;<code>git st<\/code>&nbsp;alias<\/td><\/tr><tr><td><code>git config --global alias.cm \"commit -m\"<\/code><\/td><td>Shortcut for commits<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h1 class=\"wp-block-heading\"> <\/h1>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git&nbsp;is a free, open-source&nbsp;distributed version control system&nbsp;created by Linus Torvalds.It helps developers: Learn how to write computer programs<\/p>\n","protected":false},"author":1,"featured_media":3205,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[98],"tags":[],"class_list":["post-3204","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-softare-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Complete Git Commands<\/title>\n<meta name=\"description\" content=\"Git is a free, open-source distributed version control system created by Linus Torvalds.It helps developers to track changes in their code.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Complete Git Commands\" \/>\n<meta property=\"og:description\" content=\"Git is a free, open-source distributed version control system created by Linus Torvalds.It helps developers to track changes in their code.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/\" \/>\n<meta property=\"article:author\" content=\"https:\/\/facebook.com\/codeflretech\" \/>\n<meta property=\"article:published_time\" content=\"2025-12-04T10:53:21+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-04T10:53:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/12\/2-2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"codeflare\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@codeflaretech\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"TechArticle\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/\"},\"author\":{\"name\":\"codeflare\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\"},\"headline\":\"Complete Git Commands\",\"datePublished\":\"2025-12-04T10:53:21+00:00\",\"dateModified\":\"2025-12-04T10:53:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/\"},\"wordCount\":531,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/2-2.png\",\"articleSection\":[\"softare development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/\",\"name\":\"Complete Git Commands\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/2-2.png\",\"datePublished\":\"2025-12-04T10:53:21+00:00\",\"dateModified\":\"2025-12-04T10:53:25+00:00\",\"description\":\"Git is a free, open-source distributed version control system created by Linus Torvalds.It helps developers to track changes in their code.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/#primaryimage\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/2-2.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2025\\\/12\\\/2-2.png\",\"width\":1080,\"height\":1080,\"caption\":\"git commands\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/complete-git-commands\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"softare development\",\"item\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/softare-development\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Complete Git Commands\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"name\":\"\",\"description\":\"Sustainable solutions\",\"publisher\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#organization\",\"name\":\"Codeflare Limited\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"contentUrl\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/11\\\/codeflare.png\",\"width\":1040,\"height\":263,\"caption\":\"Codeflare Limited\"},\"image\":{\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/#\\\/schema\\\/person\\\/7e65653d49add95629f8c1053c5cd76a\",\"name\":\"codeflare\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g\",\"caption\":\"codeflare\"},\"description\":\"Latest tech news and coding tips.\",\"sameAs\":[\"https:\\\/\\\/codeflarelimited.com\\\/blog\",\"https:\\\/\\\/facebook.com\\\/codeflretech\",\"https:\\\/\\\/instagram.com\\\/codeflaretech\",\"https:\\\/\\\/x.com\\\/codeflaretech\",\"https:\\\/\\\/www.youtube.com\\\/channel\\\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1\"],\"url\":\"https:\\\/\\\/codeflarelimited.com\\\/blog\\\/author\\\/watcher\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Complete Git Commands","description":"Git is a free, open-source distributed version control system created by Linus Torvalds.It helps developers to track changes in their code.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/","og_locale":"en_US","og_type":"article","og_title":"Complete Git Commands","og_description":"Git is a free, open-source distributed version control system created by Linus Torvalds.It helps developers to track changes in their code.","og_url":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/","article_author":"https:\/\/facebook.com\/codeflretech","article_published_time":"2025-12-04T10:53:21+00:00","article_modified_time":"2025-12-04T10:53:25+00:00","og_image":[{"width":1080,"height":1080,"url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/12\/2-2.png","type":"image\/png"}],"author":"codeflare","twitter_card":"summary_large_image","twitter_creator":"@codeflaretech","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"TechArticle","@id":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/#article","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/"},"author":{"name":"codeflare","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a"},"headline":"Complete Git Commands","datePublished":"2025-12-04T10:53:21+00:00","dateModified":"2025-12-04T10:53:25+00:00","mainEntityOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/"},"wordCount":531,"commentCount":0,"publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/12\/2-2.png","articleSection":["softare development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/","url":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/","name":"Complete Git Commands","isPartOf":{"@id":"https:\/\/codeflarelimited.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/#primaryimage"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/#primaryimage"},"thumbnailUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/12\/2-2.png","datePublished":"2025-12-04T10:53:21+00:00","dateModified":"2025-12-04T10:53:25+00:00","description":"Git is a free, open-source distributed version control system created by Linus Torvalds.It helps developers to track changes in their code.","breadcrumb":{"@id":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/#primaryimage","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/12\/2-2.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/12\/2-2.png","width":1080,"height":1080,"caption":"git commands"},{"@type":"BreadcrumbList","@id":"https:\/\/codeflarelimited.com\/blog\/complete-git-commands\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/codeflarelimited.com\/blog\/"},{"@type":"ListItem","position":2,"name":"softare development","item":"https:\/\/codeflarelimited.com\/blog\/softare-development\/"},{"@type":"ListItem","position":3,"name":"Complete Git Commands"}]},{"@type":"WebSite","@id":"https:\/\/codeflarelimited.com\/blog\/#website","url":"https:\/\/codeflarelimited.com\/blog\/","name":"","description":"Sustainable solutions","publisher":{"@id":"https:\/\/codeflarelimited.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/codeflarelimited.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/codeflarelimited.com\/blog\/#organization","name":"Codeflare Limited","url":"https:\/\/codeflarelimited.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","contentUrl":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2020\/11\/codeflare.png","width":1040,"height":263,"caption":"Codeflare Limited"},"image":{"@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/codeflarelimited.com\/blog\/#\/schema\/person\/7e65653d49add95629f8c1053c5cd76a","name":"codeflare","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/59cef917c86d965eea581d2747f51bd6382003a68bfce7c8a4dfec98b4cd838d?s=96&d=mm&r=g","caption":"codeflare"},"description":"Latest tech news and coding tips.","sameAs":["https:\/\/codeflarelimited.com\/blog","https:\/\/facebook.com\/codeflretech","https:\/\/instagram.com\/codeflaretech","https:\/\/x.com\/codeflaretech","https:\/\/www.youtube.com\/channel\/UCuBLtiYqsajHdqw0uyt7Ofw?sub_confirmation=1"],"url":"https:\/\/codeflarelimited.com\/blog\/author\/watcher\/"}]}},"jetpack_featured_media_url":"https:\/\/codeflarelimited.com\/blog\/wp-content\/uploads\/2025\/12\/2-2.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/3204","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/comments?post=3204"}],"version-history":[{"count":1,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/3204\/revisions"}],"predecessor-version":[{"id":3206,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/posts\/3204\/revisions\/3206"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media\/3205"}],"wp:attachment":[{"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/media?parent=3204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/categories?post=3204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/codeflarelimited.com\/blog\/wp-json\/wp\/v2\/tags?post=3204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}