{"id":2197,"date":"2021-11-24T09:13:51","date_gmt":"2021-11-24T09:13:51","guid":{"rendered":"https:\/\/gitprotect.io\/blog\/?p=2197"},"modified":"2024-12-11T08:41:43","modified_gmt":"2024-12-11T08:41:43","slug":"git-commands-list-with-examples","status":"publish","type":"post","link":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/","title":{"rendered":"Git Commands List With Examples"},"content":{"rendered":"\n<p>Git is currently the most popular version control system. This is, among others, because it is fast, distributed, branched, and free. The very idea of working with Git is fairly easy, but the number of commands is quite large, and quite a few of them are rarely used.<\/p>\n\n\n\n<p>Git commands can be divided into several types, depending on what they are for. These can be configuration commands (e.g. config), to make changes to the repository (e.g. commit, push), branching and merging (e.g. checkout, merge) or inspection and comparison (e.g. log, diff).<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\" id=\"git-commands-types-and-examples\"><strong>Git commands types and examples<\/strong><\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><tbody><tr><td><strong>command<\/strong><\/td><td><strong>what it does<\/strong><\/td><td><strong>syntax &amp; examples<\/strong><\/td><\/tr><tr><td><strong>init<\/strong><\/td><td>Creates a new local (empty) repository with the default branch, but without any git commit.<\/td><td><strong><em>git init<\/em><\/strong><\/td><\/tr><tr><td><strong>clone<\/strong><\/td><td>Creates a local copy of the remote repository. To learn more about <a href=\"https:\/\/gitprotect.io\/git-clone-guide.html\" target=\"_blank\" rel=\"noreferrer noopener\">git clone<\/a> download our guide.<\/td><td><strong><em><a href=\"https:\/\/gitprotect.io\/blog\/how-to-clone-a-git-repository\/\" target=\"_blank\" rel=\"noreferrer noopener\">git clone<\/a> &lt;repo_address&gt; &lt;local_directory&gt;<\/em><\/strong><\/td><\/tr><tr><td><strong>bundle&nbsp;<\/strong><\/td><td>Create a single archive file with all refs needed to restore the repository.<\/td><td><strong><em>git bundle create &lt;archive_name&gt; &#8211;all<\/em><\/strong><\/td><\/tr><tr><td><strong>add<\/strong><\/td><td>Add changes to the Staging Area.<\/td><td><strong><em>git add &lt;file_name&gt;<\/em><\/strong><\/td><\/tr><tr><td><strong>commit<\/strong><\/td><td>Commit changes from the Staging Area.<\/td><td><strong><em>git commit -m \u201cMessage\u201d<\/em><\/strong><\/td><\/tr><tr><td><strong>push<\/strong><\/td><td>Sends changes to a remote repository (origin) to a given branch.<\/td><td><strong><em>git push origin &lt;branch_name&gt;<\/em><\/strong><\/td><\/tr><tr><td><strong>fetch<\/strong><\/td><td>Take changes from the external repo but do not include them in local branches.<\/td><td><strong><em>git fetch origin<\/em><\/strong><\/td><\/tr><tr><td><strong>pull<\/strong><\/td><td>It downloads and immediately integrates changes to the local branch.<br><strong>pull = fetch + merge<\/strong><\/td><td><strong><em>git pull origin &lt;branch_name&gt;<\/em><\/strong><br>Above call is equal to this two below:<br><strong><em>git fetch origin &lt;branch_name&gt;git merge origin\/&lt;branch_name&gt;<\/em><\/strong><\/td><\/tr><tr><td><strong>reset<\/strong><\/td><td>Reset current HEAD to the specified state (e.g. commit):<br>&#8211;softdifferences will be preserved in the Staging Area,<br>&#8211;mixedthe differences will be kept in the Working Directory, this is the default scope,<br>&#8211;hardthe: differences will be completely removed.<\/td><td><strong><em>git reset &#8211;soft &lt;file_name&gt;<\/em><\/strong><br><strong><em>git reset &#8211;hard<\/em><\/strong><\/td><\/tr><tr><td><strong>revert<\/strong><\/td><td>Rolls back the changes by creating a new commit that is the exact opposite of the one being reverted. Safe operation &#8211; will not spoil the commit history<br>reverts the last commit.<\/td><td><strong><em><a href=\"https:\/\/gitprotect.io\/blog\/git-revert-file-to-previous-commit\/\" target=\"_blank\" rel=\"noreferrer noopener\">git revert<\/a> &lt;commit_SHA><\/em><\/strong><br><br><br><br><br><strong><em>git revert HEAD~1<\/em><\/strong><\/td><\/tr><tr><td><strong>branch<\/strong><\/td><td>Basic operations on branches.<br>&#8211; showing the list of all branches,<br>&#8211; creating a new branch,<br>&#8211; deleting the specific branch.<\/td><td><br><br><br><strong><em>git branch<\/em><\/strong><br><strong><em>git branch &lt;branch_name&gt;<\/em><\/strong><br><strong><em>git branch -d &lt;branch_name&gt;<\/em><\/strong><\/td><\/tr><tr><td><strong>checkout<\/strong><\/td><td>Switches to the given branch.<br>Creates a new branch and switches to it immediately.<\/td><td><strong><em>git checkout &lt;branch_name&gt;<\/em><\/strong><br><br><strong><em>git checkout -b &lt;branch_name&gt;<\/em><\/strong><\/td><\/tr><tr><td><strong>remote<\/strong><\/td><td>Manage a set of tracked repositories.<br>Set remote server address (e.g. after init operation).<br>Displays a list of currently set connections.<\/td><td><br><br><br><strong><em>git remote add origin &lt;repository_address&gt;<\/em><\/strong><br><br><strong><em>git remote -v<\/em><\/strong><\/td><\/tr><tr><td><strong>merge<\/strong><\/td><td>Concatenates changes from the given branch to the currently active branch. Possible merge conflicts.<\/td><td><strong><em>git merge &lt;branch_name&gt;<\/em><\/strong><\/td><\/tr><tr><td><strong>rebase<\/strong><\/td><td>Reapply commits on top of the current and updated branch. The current branch is re-based.<br>Flatten the history, avoiding merge-commits.<\/td><td><strong><em>git rebase &lt;branch_name&gt;<\/em><\/strong><\/td><\/tr><tr><td><strong>status<\/strong><\/td><td>Shows the current status of the Working Directory and Staging Area.<\/td><td><strong><em>git status<\/em><\/strong><\/td><\/tr><tr><td><strong>log<\/strong><\/td><td>It shows the commit list with some details depending on the parameters provided.<br>Prints log for the last 3 commits.<br>Prints log for author&#8217;s commits, not older than 1 week.<\/td><td><br><br><br><br><strong><em>git log -3<\/em><\/strong><br><strong><em>git log &#8211;author=&#8221;John Doe&#8221; &#8211;after=&#8221;1 week ago&#8221;<\/em><\/strong><br><\/td><\/tr><tr><td><strong>diff<\/strong><\/td><td>Show changes between two items:<br>&#8211; commits difference<br>&#8211; branches difference<\/td><td><strong><em>git diff<\/em><\/strong><br><strong><em>git diff &lt;SHA_commit1&gt; &lt;SHA_commit2&gt;<\/em><\/strong><br><strong><em>git diff &lt;branch1_name&gt; &lt;branch2_name&gt;<\/em><\/strong><\/td><\/tr><tr><td><strong>config<\/strong><\/td><td>Allows for basic configuration, such as username, email address or default text editor, etc.<br>Deletion of a given config.<br>Be aware that there are 3 levels of configuration: local, global, system.<\/td><td><strong><em>git config user.name \u201cJohn Doe\u201d<\/em><\/strong><br><strong><em>git config &#8211;local user.email \u201cjohn@mail[.]com\u201d<\/em><\/strong><br><strong><em>git config &#8211;unset &lt;option_name><\/em><\/strong><\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"git-parameters\">Git parameters<\/h3>\n\n\n\n<p>A very important feature of git commands is the fact that virtually every command can be parameterized, i.e. give it an appropriate option (or flag) that will change the operation of a given function, e.g.:<\/p>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p class=\"has-text-align-left\" style=\"font-size:22px\">Git improved your software development process? Do the next step and <strong>secure your code with the first professional GitHub, Bitbucket, and GitLab backup<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-buttons is-layout-flex wp-block-buttons-is-layout-flex\">\n<div class=\"wp-block-button align=&quot;center&quot;\"><a class=\"wp-block-button__link has-background wp-element-button\" href=\"https:\/\/gitprotect.io\/sign-up.html\" style=\"border-radius:50px;background-color:#ff0300\" target=\"_blank\" rel=\"noreferrer noopener\">Start 14 days free GitProtect trial<\/a><\/div>\n<\/div>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<div style=\"height:20px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><strong><em>git status<\/em><\/strong><br>default call with default information<\/p>\n\n\n\n<p><strong><em>git status &#8211;short<\/em><\/strong><br>will show the output in short format (&#8211;long is the opposite parameter)<\/p>\n\n\n\n<p><strong><em>git status -uno<\/em><\/strong><br>this will show no untracked files<\/p>\n\n\n\n<p>Detailed descriptions of all options and how to use them are available in the <a href=\"https:\/\/git-scm.com\/docs\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">official Git documentation<\/a>.<\/p>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Git is currently the most popular version control system. This is, among others, because it is fast, distributed, branched, and free. The very idea of working with Git is fairly easy, but the number of commands is quite large, and quite a few of them are rarely used. Git commands can be divided into several types, depending on what they are for. These can be configuration commands (e.g. config), to make changes to the repository (e.g. commit, push), branching and merging (e.g. checkout, merge) or inspection and comparison (e.g. log, diff).<\/p>\n","protected":false},"author":6,"featured_media":2203,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-2197","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-git-backup-101","post--single"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Git Commands List With Examples - Blog | GitProtect.io<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Git Commands List With Examples - Blog | GitProtect.io\" \/>\n<meta property=\"og:description\" content=\"Git is currently the most popular version control system. This is, among others, because it is fast, distributed, branched, and free. The very idea of working with Git is fairly easy, but the number of commands is quite large, and quite a few of them are rarely used. Git commands can be divided into several types, depending on what they are for. These can be configuration commands (e.g. config), to make changes to the repository (e.g. commit, push), branching and merging (e.g. checkout, merge) or inspection and comparison (e.g. log, diff).\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog | GitProtect.io\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/XoperoSoftware\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-11-24T09:13:51+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-12-11T08:41:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2021\/11\/git-commands-top2.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"600\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Tomasz Lisowski\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@GitProtectio\" \/>\n<meta name=\"twitter:site\" content=\"@GitProtectio\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tomasz Lisowski\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/\"},\"author\":{\"name\":\"Tomasz Lisowski\",\"@id\":\"https:\/\/gitprotect.io\/blog\/#\/schema\/person\/9437be55e0e82150a20247f63e2fef79\"},\"headline\":\"Git Commands List With Examples\",\"datePublished\":\"2021-11-24T09:13:51+00:00\",\"dateModified\":\"2024-12-11T08:41:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/\"},\"wordCount\":774,\"publisher\":{\"@id\":\"https:\/\/gitprotect.io\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2021\/11\/git-commands-top2.png\",\"articleSection\":[\"Git Backup 101\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/\",\"url\":\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/\",\"name\":\"Git Commands List With Examples - Blog | GitProtect.io\",\"isPartOf\":{\"@id\":\"https:\/\/gitprotect.io\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2021\/11\/git-commands-top2.png\",\"datePublished\":\"2021-11-24T09:13:51+00:00\",\"dateModified\":\"2024-12-11T08:41:43+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#primaryimage\",\"url\":\"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2021\/11\/git-commands-top2.png\",\"contentUrl\":\"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2021\/11\/git-commands-top2.png\",\"width\":1200,\"height\":600,\"caption\":\"git commands list with examples\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Strona g\u0142\u00f3wna\",\"item\":\"https:\/\/gitprotect.io\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Git Commands List With Examples\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/gitprotect.io\/blog\/#website\",\"url\":\"https:\/\/gitprotect.io\/blog\/\",\"name\":\"GitProtect.io Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/gitprotect.io\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/gitprotect.io\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/gitprotect.io\/blog\/#organization\",\"name\":\"GitProtect.io\",\"url\":\"https:\/\/gitprotect.io\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/gitprotect.io\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2023\/05\/favicon-528x528-1.png\",\"contentUrl\":\"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2023\/05\/favicon-528x528-1.png\",\"width\":528,\"height\":528,\"caption\":\"GitProtect.io\"},\"image\":{\"@id\":\"https:\/\/gitprotect.io\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/XoperoSoftware\/\",\"https:\/\/x.com\/GitProtectio\",\"https:\/\/www.linkedin.com\/company\/xopero-software\/\",\"https:\/\/www.youtube.com\/channel\/UCiEnl6n0mIO6w7twccz-l2w\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/gitprotect.io\/blog\/#\/schema\/person\/9437be55e0e82150a20247f63e2fef79\",\"name\":\"Tomasz Lisowski\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/gitprotect.io\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2023\/05\/tomasz-lisowski_avatar-96x96.jpg\",\"contentUrl\":\"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2023\/05\/tomasz-lisowski_avatar-96x96.jpg\",\"caption\":\"Tomasz Lisowski\"},\"sameAs\":[\"https:\/\/www.linkedin.com\/in\/tomasz-lisowski-01366a75\/\"],\"url\":\"https:\/\/gitprotect.io\/blog\/author\/tomasz-lisowski\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Git Commands List With Examples - Blog | GitProtect.io","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:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/","og_locale":"en_US","og_type":"article","og_title":"Git Commands List With Examples - Blog | GitProtect.io","og_description":"Git is currently the most popular version control system. This is, among others, because it is fast, distributed, branched, and free. The very idea of working with Git is fairly easy, but the number of commands is quite large, and quite a few of them are rarely used. Git commands can be divided into several types, depending on what they are for. These can be configuration commands (e.g. config), to make changes to the repository (e.g. commit, push), branching and merging (e.g. checkout, merge) or inspection and comparison (e.g. log, diff).","og_url":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/","og_site_name":"Blog | GitProtect.io","article_publisher":"https:\/\/www.facebook.com\/XoperoSoftware\/","article_published_time":"2021-11-24T09:13:51+00:00","article_modified_time":"2024-12-11T08:41:43+00:00","og_image":[{"width":1200,"height":600,"url":"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2021\/11\/git-commands-top2.png","type":"image\/png"}],"author":"Tomasz Lisowski","twitter_card":"summary_large_image","twitter_creator":"@GitProtectio","twitter_site":"@GitProtectio","twitter_misc":{"Written by":"Tomasz Lisowski","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#article","isPartOf":{"@id":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/"},"author":{"name":"Tomasz Lisowski","@id":"https:\/\/gitprotect.io\/blog\/#\/schema\/person\/9437be55e0e82150a20247f63e2fef79"},"headline":"Git Commands List With Examples","datePublished":"2021-11-24T09:13:51+00:00","dateModified":"2024-12-11T08:41:43+00:00","mainEntityOfPage":{"@id":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/"},"wordCount":774,"publisher":{"@id":"https:\/\/gitprotect.io\/blog\/#organization"},"image":{"@id":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2021\/11\/git-commands-top2.png","articleSection":["Git Backup 101"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/","url":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/","name":"Git Commands List With Examples - Blog | GitProtect.io","isPartOf":{"@id":"https:\/\/gitprotect.io\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#primaryimage"},"image":{"@id":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#primaryimage"},"thumbnailUrl":"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2021\/11\/git-commands-top2.png","datePublished":"2021-11-24T09:13:51+00:00","dateModified":"2024-12-11T08:41:43+00:00","breadcrumb":{"@id":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#primaryimage","url":"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2021\/11\/git-commands-top2.png","contentUrl":"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2021\/11\/git-commands-top2.png","width":1200,"height":600,"caption":"git commands list with examples"},{"@type":"BreadcrumbList","@id":"https:\/\/gitprotect.io\/blog\/git-commands-list-with-examples\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Strona g\u0142\u00f3wna","item":"https:\/\/gitprotect.io\/blog\/"},{"@type":"ListItem","position":2,"name":"Git Commands List With Examples"}]},{"@type":"WebSite","@id":"https:\/\/gitprotect.io\/blog\/#website","url":"https:\/\/gitprotect.io\/blog\/","name":"GitProtect.io Blog","description":"","publisher":{"@id":"https:\/\/gitprotect.io\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gitprotect.io\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/gitprotect.io\/blog\/#organization","name":"GitProtect.io","url":"https:\/\/gitprotect.io\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gitprotect.io\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2023\/05\/favicon-528x528-1.png","contentUrl":"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2023\/05\/favicon-528x528-1.png","width":528,"height":528,"caption":"GitProtect.io"},"image":{"@id":"https:\/\/gitprotect.io\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/XoperoSoftware\/","https:\/\/x.com\/GitProtectio","https:\/\/www.linkedin.com\/company\/xopero-software\/","https:\/\/www.youtube.com\/channel\/UCiEnl6n0mIO6w7twccz-l2w"]},{"@type":"Person","@id":"https:\/\/gitprotect.io\/blog\/#\/schema\/person\/9437be55e0e82150a20247f63e2fef79","name":"Tomasz Lisowski","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/gitprotect.io\/blog\/#\/schema\/person\/image\/","url":"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2023\/05\/tomasz-lisowski_avatar-96x96.jpg","contentUrl":"https:\/\/gitprotect.io\/blog\/wp-content\/uploads\/2023\/05\/tomasz-lisowski_avatar-96x96.jpg","caption":"Tomasz Lisowski"},"sameAs":["https:\/\/www.linkedin.com\/in\/tomasz-lisowski-01366a75\/"],"url":"https:\/\/gitprotect.io\/blog\/author\/tomasz-lisowski\/"}]}},"_links":{"self":[{"href":"https:\/\/gitprotect.io\/blog\/wp-json\/wp\/v2\/posts\/2197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gitprotect.io\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gitprotect.io\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gitprotect.io\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/gitprotect.io\/blog\/wp-json\/wp\/v2\/comments?post=2197"}],"version-history":[{"count":12,"href":"https:\/\/gitprotect.io\/blog\/wp-json\/wp\/v2\/posts\/2197\/revisions"}],"predecessor-version":[{"id":6075,"href":"https:\/\/gitprotect.io\/blog\/wp-json\/wp\/v2\/posts\/2197\/revisions\/6075"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/gitprotect.io\/blog\/wp-json\/wp\/v2\/media\/2203"}],"wp:attachment":[{"href":"https:\/\/gitprotect.io\/blog\/wp-json\/wp\/v2\/media?parent=2197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gitprotect.io\/blog\/wp-json\/wp\/v2\/categories?post=2197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gitprotect.io\/blog\/wp-json\/wp\/v2\/tags?post=2197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}