{"id":759,"date":"2023-01-02T09:00:00","date_gmt":"2023-01-02T09:00:00","guid":{"rendered":"https:\/\/www.naveedulhaq.com\/?p=759"},"modified":"2023-03-13T11:06:25","modified_gmt":"2023-03-13T11:06:25","slug":"git-commands-a-cheat-sheet","status":"publish","type":"post","link":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/","title":{"rendered":"GIT Commands cheat sheet"},"content":{"rendered":"\n<p>The Git commands cheat sheet summarizes commonly used Git command line instructions for quick reference<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"576\" src=\"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2023\/01\/git-commands-cheat-sheet-1024x576.png\" loading=\"lazy\" alt=\"git commands cheat sheet\" class=\"wp-image-967\" srcset=\"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2023\/01\/git-commands-cheat-sheet-1024x576.png 1024w, https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2023\/01\/git-commands-cheat-sheet-300x169.png 300w, https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2023\/01\/git-commands-cheat-sheet-768x432.png 768w, https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2023\/01\/git-commands-cheat-sheet.png 1366w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><figcaption class=\"wp-element-caption\">git commands cheat sheet<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">Origin<\/h2>\n\n\n\n<p>Origin stands for the address of your repository<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Master or main <\/h2>\n\n\n\n<p>Master or main represents your master branch<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Add Readme file<\/h2>\n\n\n\n<p>Add the following command to add the readme file<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git add README.md<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Setup your Username as your name<\/h2>\n\n\n\n<p>You can use this command after the first installation of git. This command will set up the username as your name so that whenever you make changes it will note down who has made these changes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git config --global user.name \"Your Name\"<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Setup your Email as your Email Address<\/h2>\n\n\n\n<p>This command will set up the git email as your email so that whenever you make changes it will note down who has made these changes.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git config --global user.email \"your email\"\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Create a directory<\/h2>\n\n\n\n<p>Use this command to create the directory in a particular location.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>mkdr \"directory-name\"<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Initiate the git tracking<\/h2>\n\n\n\n<p>Use this command to initiate the git tracking for a new repository<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git init<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Create a file in the repository<\/h2>\n\n\n\n<p>Use this command to create a file in a particular folder\/repo<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>touch \"any-file-name.html\"<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Ignore files in the repository<\/h2>\n\n\n\n<p>Files and paths added in the gitignore file will be ignored in check-ins<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>.gitignore<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Git Remote location<\/h2>\n\n\n\n<p>The following command tells you the remote location<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git remote -v<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Git Status<\/h2>\n\n\n\n<p>The following command tells you which files have been modified.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git status<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Setup all staging files<\/h2>\n\n\n\n<p>Use this file to set up all the staging files.  you don&#8217;t have to specify the file names<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git add -A(or git add .)<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Commit Changes<\/h2>\n\n\n\n<p>The following command commit changes <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git commit -m 'any message' <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Stage &amp; Commit Changes<\/h2>\n\n\n\n<p>The following Command will stage and commit changes<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git commit -a -m 'any message'<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Commit with message &amp; description<\/h2>\n\n\n\n<p>This command will add the message in the description and heading when committing the changes<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git commit -m 'any message' -m 'any message'<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Last Commit details<\/h2>\n\n\n\n<p>if by mistake any changes happen in files or the files are deleted after the last commit, when you run this command it will give you back all the files that were saved till the last commit<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git checkout <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Push<\/h2>\n\n\n\n<p>This command will push all the files from your computer to the remote git repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git push origin main<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Pull<\/h2>\n\n\n\n<p>This command will pull the copy of the files from the remote git repository on your computer.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git pull origin main<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Clone<\/h2>\n\n\n\n<p>This command will copy\/clone the given project files on your computer<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone repo-link<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Remote<\/h2>\n\n\n\n<p>This command will show you the server address to where you want to push your repo.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git remove -v<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Remote destination<\/h2>\n\n\n\n<p>This command will setup the destination of your require git path<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git remote set-url origin urlWhereYouWantTheRepoToPush<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Branch status<\/h2>\n\n\n\n<p>This command checks the branch status in the local repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git branch<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Branch status on remote<\/h2>\n\n\n\n<p>This command checks the branch status in the remote repository.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git branch -r<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Create new branch<\/h2>\n\n\n\n<p>The following command will create a new branch with the branch name<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git checkout -b branchName<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Switch branch<\/h2>\n\n\n\n<p>The following command switched to the main branch.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git checkout main<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Checkout changes in the branch<\/h2>\n\n\n\n<p>The following command checkout changes with the main branch. <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git checkout origin\/main<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Merge conflicts <\/h2>\n\n\n\n<p>The following command merge conflicts. When merging is done for a new branch (been edited by different persons) with the main branch<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git merge newBranchName<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Check difference <\/h2>\n\n\n\n<p>The following command checks the difference between the local and main branches.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git diff main<\/code><\/pre>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>The Git commands cheat sheet summarizes commonly used Git command line instructions for quick reference Origin Origin stands for the address of your repository Master&#8230;<\/p>\n","protected":false},"author":1,"featured_media":760,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[86,14,94],"tags":[32,23,93],"class_list":["post-759","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-js","category-misc","category-npm-git","tag-developer","tag-development","tag-npm"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>GIT Commands cheat sheet - Naveed Ul-Haq&#039;s blog<\/title>\n<meta name=\"description\" content=\"Git commands cheat sheet summarizes commonly used Git command line instructions for quick reference - NPM GIT - Naveed Ul-Haq&#039;s blog\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"GIT Commands cheat sheet - Naveed Ul-Haq&#039;s blog\" \/>\n<meta property=\"og:description\" content=\"Git commands cheat sheet summarizes commonly used Git command line instructions for quick reference - NPM GIT - Naveed Ul-Haq&#039;s blog\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/\" \/>\n<meta property=\"og:site_name\" content=\"Naveed Ul-Haq&#039;s blog\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-02T09:00:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-03-13T11:06:25+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2022\/12\/git.png\" \/>\n\t<meta property=\"og:image:width\" content=\"383\" \/>\n\t<meta property=\"og:image:height\" content=\"383\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Naveed Ul-Haq\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Naveed Ul-Haq\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/\"},\"author\":{\"name\":\"Naveed Ul-Haq\",\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/#\\\/schema\\\/person\\\/dd6db5980b965fcae41e096d357c65c9\"},\"headline\":\"GIT Commands cheat sheet\",\"datePublished\":\"2023-01-02T09:00:00+00:00\",\"dateModified\":\"2023-03-13T11:06:25+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/\"},\"wordCount\":500,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/#\\\/schema\\\/person\\\/dd6db5980b965fcae41e096d357c65c9\"},\"image\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.naveedulhaq.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/git.png\",\"keywords\":[\"developer\",\"development\",\"npm\"],\"articleSection\":[\"JS\",\"Misc\",\"npm &amp; git\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/\",\"url\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/\",\"name\":\"GIT Commands cheat sheet - Naveed Ul-Haq&#039;s blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.naveedulhaq.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/git.png\",\"datePublished\":\"2023-01-02T09:00:00+00:00\",\"dateModified\":\"2023-03-13T11:06:25+00:00\",\"description\":\"Git commands cheat sheet summarizes commonly used Git command line instructions for quick reference - NPM GIT - Naveed Ul-Haq&#039;s blog\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.naveedulhaq.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/git.png\",\"contentUrl\":\"https:\\\/\\\/www.naveedulhaq.com\\\/wp-content\\\/uploads\\\/2022\\\/12\\\/git.png\",\"width\":383,\"height\":383},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/index.php\\\/misc\\\/git-commands-a-cheat-sheet\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.naveedulhaq.com\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"GIT Commands cheat sheet\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/#website\",\"url\":\"https:\\\/\\\/www.naveedulhaq.com\\\/\",\"name\":\"Naveed Ul-Haq's blog\",\"description\":\"AI, Optimizely, Azure &amp; more\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/#\\\/schema\\\/person\\\/dd6db5980b965fcae41e096d357c65c9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.naveedulhaq.com\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.naveedulhaq.com\\\/#\\\/schema\\\/person\\\/dd6db5980b965fcae41e096d357c65c9\",\"name\":\"Naveed Ul-Haq\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g\",\"caption\":\"Naveed Ul-Haq\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g\"},\"description\":\"I lead engineering delivery teams for digital commerce and digital experience platforms, combining hands-on architecture experience with strong delivery governance. Over 20+ years, I\u2019ve built and led cross\u2011functional teams (engineering, BA, QA) delivering modern cloud solutions on Azure, microservices, APIs and eCommerce\\\/CMS platforms. My recent focus includes AI-enabled commerce automation: product ingestion and enrichment workflows, content optimisation for SEO and shopping feeds, and agentic tooling to improve marketing and accessibility workflows. I\u2019m passionate about building high-performing teams, establishing quality\\\/release standards, and delivering measurable outcomes across performance, reliability, and speed of change.\",\"sameAs\":[\"https:\\\/\\\/www.naveedulhaq.com\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/naveedulhaq\\\/\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"GIT Commands cheat sheet - Naveed Ul-Haq&#039;s blog","description":"Git commands cheat sheet summarizes commonly used Git command line instructions for quick reference - NPM GIT - Naveed Ul-Haq&#039;s blog","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:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/","og_locale":"en_GB","og_type":"article","og_title":"GIT Commands cheat sheet - Naveed Ul-Haq&#039;s blog","og_description":"Git commands cheat sheet summarizes commonly used Git command line instructions for quick reference - NPM GIT - Naveed Ul-Haq&#039;s blog","og_url":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/","og_site_name":"Naveed Ul-Haq&#039;s blog","article_published_time":"2023-01-02T09:00:00+00:00","article_modified_time":"2023-03-13T11:06:25+00:00","og_image":[{"width":383,"height":383,"url":"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2022\/12\/git.png","type":"image\/png"}],"author":"Naveed Ul-Haq","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Naveed Ul-Haq","Estimated reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/#article","isPartOf":{"@id":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/"},"author":{"name":"Naveed Ul-Haq","@id":"https:\/\/www.naveedulhaq.com\/#\/schema\/person\/dd6db5980b965fcae41e096d357c65c9"},"headline":"GIT Commands cheat sheet","datePublished":"2023-01-02T09:00:00+00:00","dateModified":"2023-03-13T11:06:25+00:00","mainEntityOfPage":{"@id":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/"},"wordCount":500,"commentCount":1,"publisher":{"@id":"https:\/\/www.naveedulhaq.com\/#\/schema\/person\/dd6db5980b965fcae41e096d357c65c9"},"image":{"@id":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/#primaryimage"},"thumbnailUrl":"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2022\/12\/git.png","keywords":["developer","development","npm"],"articleSection":["JS","Misc","npm &amp; git"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/","url":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/","name":"GIT Commands cheat sheet - Naveed Ul-Haq&#039;s blog","isPartOf":{"@id":"https:\/\/www.naveedulhaq.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/#primaryimage"},"image":{"@id":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/#primaryimage"},"thumbnailUrl":"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2022\/12\/git.png","datePublished":"2023-01-02T09:00:00+00:00","dateModified":"2023-03-13T11:06:25+00:00","description":"Git commands cheat sheet summarizes commonly used Git command line instructions for quick reference - NPM GIT - Naveed Ul-Haq&#039;s blog","breadcrumb":{"@id":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/#primaryimage","url":"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2022\/12\/git.png","contentUrl":"https:\/\/www.naveedulhaq.com\/wp-content\/uploads\/2022\/12\/git.png","width":383,"height":383},{"@type":"BreadcrumbList","@id":"https:\/\/www.naveedulhaq.com\/index.php\/misc\/git-commands-a-cheat-sheet\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.naveedulhaq.com\/"},{"@type":"ListItem","position":2,"name":"GIT Commands cheat sheet"}]},{"@type":"WebSite","@id":"https:\/\/www.naveedulhaq.com\/#website","url":"https:\/\/www.naveedulhaq.com\/","name":"Naveed Ul-Haq's blog","description":"AI, Optimizely, Azure &amp; more","publisher":{"@id":"https:\/\/www.naveedulhaq.com\/#\/schema\/person\/dd6db5980b965fcae41e096d357c65c9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.naveedulhaq.com\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/www.naveedulhaq.com\/#\/schema\/person\/dd6db5980b965fcae41e096d357c65c9","name":"Naveed Ul-Haq","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g","caption":"Naveed Ul-Haq"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/362536aba6cc66917d7558cacd015a81c7cdf1a69b9a28c994764847c487b692?s=96&d=mm&r=g"},"description":"I lead engineering delivery teams for digital commerce and digital experience platforms, combining hands-on architecture experience with strong delivery governance. Over 20+ years, I\u2019ve built and led cross\u2011functional teams (engineering, BA, QA) delivering modern cloud solutions on Azure, microservices, APIs and eCommerce\/CMS platforms. My recent focus includes AI-enabled commerce automation: product ingestion and enrichment workflows, content optimisation for SEO and shopping feeds, and agentic tooling to improve marketing and accessibility workflows. I\u2019m passionate about building high-performing teams, establishing quality\/release standards, and delivering measurable outcomes across performance, reliability, and speed of change.","sameAs":["https:\/\/www.naveedulhaq.com","https:\/\/www.linkedin.com\/in\/naveedulhaq\/"]}]}},"_links":{"self":[{"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/posts\/759","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/comments?post=759"}],"version-history":[{"count":0,"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/posts\/759\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/media\/760"}],"wp:attachment":[{"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/media?parent=759"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/categories?post=759"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.naveedulhaq.com\/index.php\/wp-json\/wp\/v2\/tags?post=759"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}