{"id":3527,"date":"2012-12-18T17:36:34","date_gmt":"2012-12-18T12:06:34","guid":{"rendered":"http:\/\/www.bhagwad.com\/blog\/?p=3527"},"modified":"2012-12-18T21:11:58","modified_gmt":"2012-12-18T15:41:58","slug":"simple-guide-to-git-for-windows","status":"publish","type":"post","link":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/","title":{"rendered":"Simple Guide to Git for Windows"},"content":{"rendered":"<p>Coming from a pure Windows background (with experience using DOS), and trying to make sense of version control for the first time in my life, getting started with git wasn&#8217;t easy. To start off with, it&#8217;s mostly command line based. That&#8217;s not a drawback as such, but it means you have to mess around with environment variables, typing in the names of folders to get to where you want etc. It&#8217;s a pain. In this article, i&#8217;ll explain how to get around all that and still use the command line on Windows.<\/p>\n<p>Also a lot of terms used in git guides assume you know stuff &#8211; like what the hell is a &#8220;git bash&#8221;? Then you&#8217;ll hear things like &#8220;Powershell&#8221;, &#8220;Msysgit&#8221; etc which can confuse you all over again. Let&#8217;s take it from the beginning and go from there.<\/p>\n<h2>Installing Git on Windows<\/h2>\n<p>Go to <a href=\"http:\/\/git-scm.com\/\">git-scm.com<\/a>\u00a0and install the git for Windows package. Along the way, you&#8217;ll be asked to choose how you want to use git. At one choice screen, select the context menu with Git Bash and Git GUI. Then you&#8217;ll get the following screen where I&#8217;ve chosen the very first option:<\/p>\n<figure style=\"width: 493px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\" \" title=\"Choosing Git Bash\" alt=\"Choosing Git Bash\" src=\"http:\/\/4.bp.blogspot.com\/-ie4tlh9aaAI\/UMciaN-NGVI\/AAAAAAAAB1A\/3cJWpQrTKHk\/s1600\/Choice+of+Git+Usage.png\" width=\"503\" height=\"385\" \/><figcaption class=\"wp-caption-text\">Choosing Git Bash<\/figcaption><\/figure>\n<p>Git is a program just like any other. As a DOS user, you know that if you run a command from the C:\\&gt; prompt without adding it to your environment variables, you&#8217;ll get a message saying <em>&#8220;&#8216;git&#8217; is not recognized as an internal or external command, operable program or batch file.&#8221;<\/em> But I&#8217;ve never liked adding environment variables to my PATH locations. Because if I uninstall programs, they still remain there. Even if I change their locations, I have to manually remove the old environment variables. Too messy for me. So we&#8217;ll be using Git only with Git Bash.<\/p>\n<p>Also when asked in another dialog, choose to make git bash show up in the context menu when you right click a windows folder.<\/p>\n<p>What is &#8220;git bash&#8221;? Turns out it&#8217;s just a command line interface. I have no idea why they can&#8217;t just call it &#8220;Git cli&#8221; or &#8220;Git commands&#8221;. &#8220;Git bash&#8221; is a pretty lousy name, but that&#8217;s what it is!<\/p>\n<h2>How and WHERE to Run Git<\/h2>\n<p>Git tracks files in a folder.\u00a0<em>Any<\/em> kind of files in a folder and its subfolders. So you don&#8217;t need to have any particular directory structure or any particular file type for it to work. Say you have a project stored in C:\\My Project. The project structure is like this:<\/p>\n<p>C:\\My Project&gt;<\/p>\n<p>&#8230;sourcefile1.java<br \/>\n&#8230;sourcefile2.c<br \/>\n&#8230;[bin] (folder)<br \/>\n&#8230;blah blah blah<\/p>\n<p>We need to run git\u00a0<em>inside<\/em>\u00a0the &#8220;My Project&#8221; folder. But sincewe \u00a0haven&#8217;t added git to the Windows environment PATH variables, we can&#8217;t just navigate to C:\\My Project&gt; in \u00a0a DOS prompt and type in the &#8220;git&#8221; command. And besides, didn&#8217;t I say I don&#8217;t like navigating folders via DOS anyway?<\/p>\n<p>So fire up the regular Windows file manager and go into your &#8220;My Project&#8221; folder. Right click on an empty space in the Window, and select &#8220;Git Bash&#8221; like in the following screenshot:<\/p>\n<figure style=\"width: 673px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" alt=\"Opening Git Bash in your Project Folder\" src=\"https:\/\/lh5.googleusercontent.com\/-URuN0Q_X1Tk\/UMh6xCp_lRI\/AAAAAAAAB1o\/C1upP8K6SSI\/s683\/Git+Bash+Here.png\" width=\"683\" height=\"413\" \/><figcaption class=\"wp-caption-text\">Opening Git Bash in your Project Folder<\/figcaption><\/figure>\n<p>This will open a command prompt that&#8217;s already in the folder you want. To make matters easier, the path doesn&#8217;t appear on the same line on which you type your commands like with the DOS prompt. This means you have the entire line to write your stuff without having it crowded out by a possibly long list of directories which you don&#8217;t need. It&#8217;s convenient!<\/p>\n<p>There&#8217;s also a &#8220;$&#8221; prompt under the path instead of the familiar &#8220;:\\&gt;&#8221; that we see in Windows. This means it&#8217;s trying to emulate a Unix environment. Don&#8217;t know why it has to do that, but there it is. No big deal. If you want to list all the files in the directory you have to type &#8220;ls&#8221; instead of &#8220;dir&#8221;. If you want to clear the screen, you have to type &#8220;clear&#8221; instead of &#8220;cls&#8221;. Here&#8217;s what it looks like:<\/p>\n<figure style=\"width: 667px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" alt=\"Unix command prompt at the folder in which your project files are stored\" src=\"https:\/\/lh3.googleusercontent.com\/-j8X5F_vnugI\/UMnP11WMbXI\/AAAAAAAAB18\/UgrHzsw6nqk\/s677\/Git+Command+Prompt.png\" width=\"677\" height=\"342\" \/><figcaption class=\"wp-caption-text\">Unix command prompt within the folder in which your project files are stored<\/figcaption><\/figure>\n<h2>Running Git to Track your Project<\/h2>\n<p>Now that you&#8217;ve opened git bash inside your project folder, you can start tracking the files inside. Git stores its data in something called a &#8220;repository&#8221;. It&#8217;s a hidden folder called &#8220;.git&#8221; that sits in the root of your project folder. It&#8217;s created for the first time when you type:<\/p>\n<blockquote><p>git init<\/p><\/blockquote>\n<p>Try it and check to see if the folder has appeared. Next, we want to &#8220;stage&#8221; all our existing files and folders preparing to commit to the git repository for the first time. To do this, type in:<\/p>\n<blockquote><p>git add -A<\/p><\/blockquote>\n<p>There are <a href=\"http:\/\/www.kernel.org\/pub\/software\/scm\/git\/docs\/git-add.html\">a bunch of options<\/a> we can use. &#8220;-A&#8221; simply &#8220;stages&#8221; all files and folders that have changed since last time. Since the repository started out empty, this includes everything.<\/p>\n<p>But wait! Git has an odd system where &#8220;git add&#8221; merely\u00a0<em>prepares<\/em>\u00a0(stages) the files for being finally pushed into the repository. \u00a0Type:<\/p>\n<blockquote><p>git status<\/p><\/blockquote>\n<p>Reading this will show you that the files in green are &#8220;staged&#8221; and ready to be committed. Presumably this system allows users to review what changes they want committed to git&#8217;s repository before they actually go in. It&#8217;s an additional step that I&#8217;m not sure is necessary, but there it is. To actually insert (commit) the files we just staged using &#8220;git add -A&#8221;, we need to type:<\/p>\n<blockquote><p>git commit -m &#8220;Enter message here. This is necessary&#8221;<\/p><\/blockquote>\n<p>This is where all the magic happens. First we had &#8220;git add -A&#8221; to stage all changed files and folders inside the project directory. The we had &#8220;git commit&#8221; to finalize those changes and store them in the repository. Every time your content changes, update the git repository by chaining together \u00a0&#8220;git add -A&#8221; and &#8220;git commit&#8221; the way we just did. Use &#8220;git status&#8221; regularly to see the current situation. Files in red mean that the changed files are not &#8220;staged&#8221; and need to be included with &#8220;git add&#8221;. Green files are staged and ready to be committed with the latest changes.<\/p>\n<p>Keep in mind that all this is still on your local system. It&#8217;s a backup to be sure, but if your hard disk crashes you&#8217;re screwed. What you need is a remote git repository that you can &#8220;push&#8221; your local one to. So that&#8217;s what we look at next.<\/p>\n<h2>Getting a Remote Git Repository<\/h2>\n<p>Two of the most well known free services are Google Code and Github. Though it can be\u00a0<em>any<\/em>\u00a0location &#8211; even another folder on your computer if you want. This makes it easy to let your Dropbox or Google Drive folder be your remote repository since whatever&#8217;s in there will get backed up to the cloud anyway.<\/p>\n<p>For some reason, I prefer to use Google Code since I haven&#8217;t really worked with Github. I may try it out one of these days. So go to\u00a0<a href=\"http:\/\/code.google.com\/\">http:\/\/code.google.com\/<\/a>\u00a0and click &#8220;Create a new project&#8221;. Enter your project details and choose Git as the version control system. Once all that&#8217;s set up, we need three things to push our local git repository to the remote one:<\/p>\n<p>1. Project URL on Google Code<\/p>\n<p>2. Username<\/p>\n<p>3. Password<\/p>\n<p>This password isn&#8217;t the same as your Google login password. Let&#8217;s get the URL first. Go to the &#8220;Source&#8221; tab of your new project and under option 1, you&#8217;ll see the URL with your username attached to it like so: https:\/\/<strong>username@<\/strong>code.google.com\/p\/project-name\/. If you remove the &#8220;username@&#8221; part, you&#8217;re left with the pure URL of your project. As for the password, there&#8217;s a link under option 1 that takes you to a page showing your password. To incorporate both the username and password into your URL, merge them like this:\u00a0https:\/\/<strong>username:password@<\/strong>code.google.com\/p\/project-name\/<\/p>\n<p>Hosting your project on Google Code makes it open source automatically. That means anyone can get a copy (clone) of your public repository. To do that, they don&#8217;t need your password. But\u00a0<em>you will<\/em> need the password to push changes from your local computer onto Google Code. In other words, only those with the password have &#8220;write&#8221; privileges to your repository. It makes sense.<\/p>\n<p>First we need to tell Git to store the address of the remote repository. You don&#8217;t want to go around typing the URL and username\/password each and every time you push your changes. So I use the following command to create a shortcut to the URL:<\/p>\n<blockquote><p>git remote add googlecode https:\/\/<strong>username:password@<\/strong>code.google.com\/p\/project-name\/<\/p><\/blockquote>\n<p>The &#8220;remote add&#8221; command tells git that for all future references to this URL, we can can use &#8220;googlecode&#8221; as a shorthand instead. Don&#8217;t forget to type in your username\u00a0<em>and<\/em> password! If you just use the URL with only the username as shown in the &#8220;source&#8221; tab, git will assume the password is nothing when you finally try your push &#8211; which of course it isn&#8217;t. And you&#8217;ll get the following error:<\/p>\n<blockquote><p>fatal: remote error: Invalid username\/password.<br \/>\nYou may need to use your generated googlecode.com password; see https:\/\/code.google.com\/hosting\/settings<\/p><\/blockquote>\n<p>You can even use the pure URL with\u00a0<em>neither<\/em> the username\u00a0<em>nor<\/em> the password (No &#8220;@&#8221; symbol at all) and git will then ask you to enter your username and password manually when you try and make changes to the remote repository.<\/p>\n<p>Now that we can refer to this long project URL and username\/password with &#8220;googlecode&#8221;, we use the following command to finally push our local repository onto the remote one:<\/p>\n<blockquote><p>git push googlecode master<\/p><\/blockquote>\n<p>Here &#8220;master&#8221; is the main branch we want to push. I haven&#8217;t really created any new branches yet, so when I work with them more I&#8217;ll get more details. For now, I just push the main branch all the time.<\/p>\n<p>And that&#8217;s how I got started with Git! It took me a while and a couple of false starts. I&#8217;ve tried to explain it right from the beginning for a Windows user with no experience using any version control. Hope you find this useful!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s not easy for a Windows user to understand how git works. I explain everything from the start about how to use it from the command line.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[31,33,23],"tags":[],"class_list":["post-3527","post","type-post","status-publish","format-standard","hentry","category-nr","category-sa","category-technology"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Simple Guide to Git for Windows<\/title>\n<meta name=\"description\" content=\"It&#039;s not easy for a Windows user to understand how git works. I explain everything from the start about how to use it from the command line.\" \/>\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.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Simple Guide to Git for Windows\" \/>\n<meta property=\"og:description\" content=\"It&#039;s not easy for a Windows user to understand how git works. I explain everything from the start about how to use it from the command line.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/\" \/>\n<meta property=\"og:site_name\" content=\"Expressions - Bhagwad Jal Park\" \/>\n<meta property=\"article:published_time\" content=\"2012-12-18T12:06:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2012-12-18T15:41:58+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/4.bp.blogspot.com\/-ie4tlh9aaAI\/UMciaN-NGVI\/AAAAAAAAB1A\/3cJWpQrTKHk\/s1600\/Choice+of+Git+Usage.png\" \/>\n<meta name=\"author\" content=\"bhagwad\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@bhagwad\" \/>\n<meta name=\"twitter:site\" content=\"@bhagwad\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"bhagwad\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"9 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/\"},\"author\":{\"name\":\"bhagwad\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\"},\"headline\":\"Simple Guide to Git for Windows\",\"datePublished\":\"2012-12-18T12:06:34+00:00\",\"dateModified\":\"2012-12-18T15:41:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/\"},\"wordCount\":1762,\"commentCount\":13,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/4.bp.blogspot.com\\\/-ie4tlh9aaAI\\\/UMciaN-NGVI\\\/AAAAAAAAB1A\\\/3cJWpQrTKHk\\\/s1600\\\/Choice+of+Git+Usage.png\",\"articleSection\":[\"NR\",\"SA\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/\",\"name\":\"Simple Guide to Git for Windows\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/4.bp.blogspot.com\\\/-ie4tlh9aaAI\\\/UMciaN-NGVI\\\/AAAAAAAAB1A\\\/3cJWpQrTKHk\\\/s1600\\\/Choice+of+Git+Usage.png\",\"datePublished\":\"2012-12-18T12:06:34+00:00\",\"dateModified\":\"2012-12-18T15:41:58+00:00\",\"description\":\"It's not easy for a Windows user to understand how git works. I explain everything from the start about how to use it from the command line.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/#primaryimage\",\"url\":\"http:\\\/\\\/4.bp.blogspot.com\\\/-ie4tlh9aaAI\\\/UMciaN-NGVI\\\/AAAAAAAAB1A\\\/3cJWpQrTKHk\\\/s1600\\\/Choice+of+Git+Usage.png\",\"contentUrl\":\"http:\\\/\\\/4.bp.blogspot.com\\\/-ie4tlh9aaAI\\\/UMciaN-NGVI\\\/AAAAAAAAB1A\\\/3cJWpQrTKHk\\\/s1600\\\/Choice+of+Git+Usage.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/2012\\\/technology\\\/simple-guide-to-git-for-windows.html\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Simple Guide to Git for Windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/\",\"name\":\"Expressions - Bhagwad Jal Park\",\"description\":\"My thoughts, haikus and freelance musings\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/#\\\/schema\\\/person\\\/06c9c710885b810f1dfe3779fc346b23\",\"name\":\"bhagwad\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1782319388\",\"url\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1782319388\",\"contentUrl\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1782319388\",\"caption\":\"bhagwad\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.bhagwad.com\\\/blog\\\/wp-content\\\/litespeed\\\/avatar\\\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1782319388\"},\"sameAs\":[\"http:\\\/\\\/www.bhagwad.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Simple Guide to Git for Windows","description":"It's not easy for a Windows user to understand how git works. I explain everything from the start about how to use it from the command line.","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.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/","og_locale":"en_US","og_type":"article","og_title":"Simple Guide to Git for Windows","og_description":"It's not easy for a Windows user to understand how git works. I explain everything from the start about how to use it from the command line.","og_url":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/","og_site_name":"Expressions - Bhagwad Jal Park","article_published_time":"2012-12-18T12:06:34+00:00","article_modified_time":"2012-12-18T15:41:58+00:00","og_image":[{"url":"http:\/\/4.bp.blogspot.com\/-ie4tlh9aaAI\/UMciaN-NGVI\/AAAAAAAAB1A\/3cJWpQrTKHk\/s1600\/Choice+of+Git+Usage.png","type":"","width":"","height":""}],"author":"bhagwad","twitter_card":"summary_large_image","twitter_creator":"@bhagwad","twitter_site":"@bhagwad","twitter_misc":{"Written by":"bhagwad","Est. reading time":"9 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/#article","isPartOf":{"@id":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/"},"author":{"name":"bhagwad","@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23"},"headline":"Simple Guide to Git for Windows","datePublished":"2012-12-18T12:06:34+00:00","dateModified":"2012-12-18T15:41:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/"},"wordCount":1762,"commentCount":13,"publisher":{"@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23"},"image":{"@id":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/#primaryimage"},"thumbnailUrl":"http:\/\/4.bp.blogspot.com\/-ie4tlh9aaAI\/UMciaN-NGVI\/AAAAAAAAB1A\/3cJWpQrTKHk\/s1600\/Choice+of+Git+Usage.png","articleSection":["NR","SA","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/","url":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/","name":"Simple Guide to Git for Windows","isPartOf":{"@id":"https:\/\/www.bhagwad.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/#primaryimage"},"image":{"@id":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/#primaryimage"},"thumbnailUrl":"http:\/\/4.bp.blogspot.com\/-ie4tlh9aaAI\/UMciaN-NGVI\/AAAAAAAAB1A\/3cJWpQrTKHk\/s1600\/Choice+of+Git+Usage.png","datePublished":"2012-12-18T12:06:34+00:00","dateModified":"2012-12-18T15:41:58+00:00","description":"It's not easy for a Windows user to understand how git works. I explain everything from the start about how to use it from the command line.","breadcrumb":{"@id":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/#primaryimage","url":"http:\/\/4.bp.blogspot.com\/-ie4tlh9aaAI\/UMciaN-NGVI\/AAAAAAAAB1A\/3cJWpQrTKHk\/s1600\/Choice+of+Git+Usage.png","contentUrl":"http:\/\/4.bp.blogspot.com\/-ie4tlh9aaAI\/UMciaN-NGVI\/AAAAAAAAB1A\/3cJWpQrTKHk\/s1600\/Choice+of+Git+Usage.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.bhagwad.com\/blog\/2012\/technology\/simple-guide-to-git-for-windows.html\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.bhagwad.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Simple Guide to Git for Windows"}]},{"@type":"WebSite","@id":"https:\/\/www.bhagwad.com\/blog\/#website","url":"https:\/\/www.bhagwad.com\/blog\/","name":"Expressions - Bhagwad Jal Park","description":"My thoughts, haikus and freelance musings","publisher":{"@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bhagwad.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.bhagwad.com\/blog\/#\/schema\/person\/06c9c710885b810f1dfe3779fc346b23","name":"bhagwad","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1782319388","url":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1782319388","contentUrl":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1782319388","caption":"bhagwad"},"logo":{"@id":"https:\/\/www.bhagwad.com\/blog\/wp-content\/litespeed\/avatar\/7940f38fc479ebe739ec963b542bf098.jpg?ver=1782319388"},"sameAs":["http:\/\/www.bhagwad.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/posts\/3527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/comments?post=3527"}],"version-history":[{"count":0,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/posts\/3527\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/media?parent=3527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/categories?post=3527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bhagwad.com\/blog\/wp-json\/wp\/v2\/tags?post=3527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}