<div class="bottomcontainerBox" style="border:1px solid #808080;background-color:#F0F4F9;">
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fshabeebk.com%2Fblog%2Finitiate-git-on-server%2F&amp;layout=button_count&amp;show_faces=false&amp;width=85&amp;action=like&amp;font=verdana&amp;colorscheme=light&amp;height=21" scrolling="no" frameborder="0" allowTransparency="true" style="border:none; overflow:hidden; width:85px; height:21px;"></iframe></div>
			<div style="float:left; width:80px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<g:plusone size="medium" href="http://shabeebk.com/blog/initiate-git-on-server/"></g:plusone>
			</div>
			<div style="float:left; width:95px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;">
			<a href="http://twitter.com/share" class="twitter-share-button" data-url="http://shabeebk.com/blog/initiate-git-on-server/"  data-text="How to Initiate git on server" data-count="horizontal"></a>
			</div><div style="float:left; width:105px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script type="in/share" data-url="http://shabeebk.com/blog/initiate-git-on-server/" data-counter="right"></script></div>			
			<div style="float:left; width:85px;padding-right:10px; margin:4px 4px 4px 4px;height:30px;"><script src="http://www.stumbleupon.com/hostedbadge.php?s=1&amp;r=http://shabeebk.com/blog/initiate-git-on-server/"></script></div>			
			</div><div style="clear:both"></div><div style="padding-bottom:4px;"></div>{"id":2,"date":"2014-04-16T20:26:54","date_gmt":"2014-04-16T20:26:54","guid":{"rendered":"http:\/\/www.shabeebk.com\/blog\/?page_id=2"},"modified":"2014-12-24T20:22:48","modified_gmt":"2014-12-24T20:22:48","slug":"initiate-git-on-server","status":"publish","type":"page","link":"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/","title":{"rendered":"How to Initiate git on server"},"content":{"rendered":"\n<p>How to initiate git through ssh <\/p>\n<p>Let us look step by step  <\/p>\n<p>step  1 : login into ssh<\/p>\n<p>step 2 : create a folder using mkdir commend and change to that folder<\/p>\n<p>step 3 :  write below comment to initate as a master branch<\/p>\n<p>git init &#8211;bare<\/p>\n<p>step 4 : change window.pack to 0<\/p>\n<p>git config pack.window 0<\/p>\n<p>step 5 : clone to local machine using<\/p>\n<p>git clone username@host.com:\/home\/folder name(if needed)<\/p>\n<p>step 5 : make changes<\/p>\n<p>create a read me file and commit<\/p>\n<p>git add .<\/p>\n<p>git commit -am &#8220;intial commit &#8221;<\/p>\n<p>step 6 :  push server<\/p>\n<p>git push origin master<\/p>\n<p>(before that make sure you take a pull from server  git pull origin master)<\/p>\n<p>&nbsp;<\/p>\n<p>step 7 :<br \/>\nAuto update in server<\/p>\n<p>cd ~\/public_html\/folder|| exit<br \/>\nunset GIT_DIR<br \/>\ngit pull origin master<br \/>\nexec git-update-server-info<\/p>\n<p>\n&nbsp;<\/p>\n<p>Enjoy Coding<\/p>\n<p>&nbsp;<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"2\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;11,278&nbsp;total views, &nbsp;3&nbsp;views today<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"excerpt":{"rendered":"<p>How to initiate git through ssh Let us look step by step step 1 : login into ssh step 2 : create a folder using mkdir commend and change to that folder step 3 : write below comment to initate as a master branch git init &#8211;bare step 4 : change window.pack to 0 git [&hellip;]<\/p>\n<div class=\"pvc_clear\"><\/div>\n<p class=\"pvc_stats all \" data-element-id=\"2\" style=\"\"><i class=\"pvc-stats-icon medium\" aria-hidden=\"true\"><svg aria-hidden=\"true\" focusable=\"false\" data-prefix=\"far\" data-icon=\"chart-bar\" role=\"img\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewBox=\"0 0 512 512\" class=\"svg-inline--fa fa-chart-bar fa-w-16 fa-2x\"><path fill=\"currentColor\" d=\"M396.8 352h22.4c6.4 0 12.8-6.4 12.8-12.8V108.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v230.4c0 6.4 6.4 12.8 12.8 12.8zm-192 0h22.4c6.4 0 12.8-6.4 12.8-12.8V140.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v198.4c0 6.4 6.4 12.8 12.8 12.8zm96 0h22.4c6.4 0 12.8-6.4 12.8-12.8V204.8c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v134.4c0 6.4 6.4 12.8 12.8 12.8zM496 400H48V80c0-8.84-7.16-16-16-16H16C7.16 64 0 71.16 0 80v336c0 17.67 14.33 32 32 32h464c8.84 0 16-7.16 16-16v-16c0-8.84-7.16-16-16-16zm-387.2-48h22.4c6.4 0 12.8-6.4 12.8-12.8v-70.4c0-6.4-6.4-12.8-12.8-12.8h-22.4c-6.4 0-12.8 6.4-12.8 12.8v70.4c0 6.4 6.4 12.8 12.8 12.8z\" class=\"\"><\/path><\/svg><\/i> &nbsp;11,278&nbsp;total views, &nbsp;3&nbsp;views today<\/p>\n<div class=\"pvc_clear\"><\/div>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":{"spay_email":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v18.4.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>shabeebk blog - Initiate git on server<\/title>\n<meta name=\"description\" content=\"How to initiate git on server ,Letus go through the step by step procedure\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"shabeebk blog - Initiate git on server\" \/>\n<meta property=\"og:description\" content=\"How to initiate git on server ,Letus go through the step by step procedure\" \/>\n<meta property=\"og:url\" content=\"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/\" \/>\n<meta property=\"og:site_name\" content=\"shabeeb Blog\" \/>\n<meta property=\"article:modified_time\" content=\"2014-12-24T20:22:48+00:00\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"http:\/\/shabeebk.com\/blog\/#website\",\"url\":\"http:\/\/shabeebk.com\/blog\/\",\"name\":\"shabeeb Blog\",\"description\":\"A developer blog\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"http:\/\/shabeebk.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/#webpage\",\"url\":\"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/\",\"name\":\"shabeebk blog - Initiate git on server\",\"isPartOf\":{\"@id\":\"http:\/\/shabeebk.com\/blog\/#website\"},\"datePublished\":\"2014-04-16T20:26:54+00:00\",\"dateModified\":\"2014-12-24T20:22:48+00:00\",\"description\":\"How to initiate git on server ,Letus go through the step by step procedure\",\"breadcrumb\":{\"@id\":\"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"http:\/\/shabeebk.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Initiate git on server\"}]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"shabeebk blog - Initiate git on server","description":"How to initiate git on server ,Letus go through the step by step procedure","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":"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/","og_locale":"en_US","og_type":"article","og_title":"shabeebk blog - Initiate git on server","og_description":"How to initiate git on server ,Letus go through the step by step procedure","og_url":"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/","og_site_name":"shabeeb Blog","article_modified_time":"2014-12-24T20:22:48+00:00","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebSite","@id":"http:\/\/shabeebk.com\/blog\/#website","url":"http:\/\/shabeebk.com\/blog\/","name":"shabeeb Blog","description":"A developer blog","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"http:\/\/shabeebk.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"WebPage","@id":"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/#webpage","url":"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/","name":"shabeebk blog - Initiate git on server","isPartOf":{"@id":"http:\/\/shabeebk.com\/blog\/#website"},"datePublished":"2014-04-16T20:26:54+00:00","dateModified":"2014-12-24T20:22:48+00:00","description":"How to initiate git on server ,Letus go through the step by step procedure","breadcrumb":{"@id":"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/"]}]},{"@type":"BreadcrumbList","@id":"http:\/\/shabeebk.com\/blog\/initiate-git-on-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"http:\/\/shabeebk.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Initiate git on server"}]}]}},"_links":{"self":[{"href":"http:\/\/shabeebk.com\/blog\/wp-json\/wp\/v2\/pages\/2"}],"collection":[{"href":"http:\/\/shabeebk.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/shabeebk.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/shabeebk.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shabeebk.com\/blog\/wp-json\/wp\/v2\/comments?post=2"}],"version-history":[{"count":4,"href":"http:\/\/shabeebk.com\/blog\/wp-json\/wp\/v2\/pages\/2\/revisions"}],"predecessor-version":[{"id":14,"href":"http:\/\/shabeebk.com\/blog\/wp-json\/wp\/v2\/pages\/2\/revisions\/14"}],"wp:attachment":[{"href":"http:\/\/shabeebk.com\/blog\/wp-json\/wp\/v2\/media?parent=2"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}