{"id":34,"date":"2015-03-28T07:56:07","date_gmt":"2015-03-28T05:56:07","guid":{"rendered":"https:\/\/amsd.go.ro\/wordpress\/?p=34"},"modified":"2022-11-28T22:08:29","modified_gmt":"2022-11-28T20:08:29","slug":"how-to-initialize-a-git-repository","status":"publish","type":"post","link":"https:\/\/amsd.go.ro\/wordpress\/?p=34","title":{"rendered":"How to initialize a GIT repository"},"content":{"rendered":"<p>I order to initialize a <strong>git<\/strong> repository you have to perform the following steps:<\/p>\n<ol>\n<li>$ cd \/path\/to\/project<\/li>\n<li>$ git init<\/li>\n<li>$ git remote add origin https:\/\/xxxxx.com\/repo<\/li>\n<li>$ git add .<\/li>\n<li>$ git commit -m \u2018initial commit\u2019<\/li>\n<li>$ git push origin master<\/li>\n<\/ol>\n<p>To synchronize local project (development version) with git you have to perform the following steps:<\/p>\n<ol>\n<li>cd \/path\/to\/project<\/li>\n<li>git add .\/*<\/li>\n<li>git commit -m &#8220;commit message&#8221;<\/li>\n<li>git push origin master<\/li>\n<\/ol>\n<p>The simplest guide to use <strong>git<\/strong> projects and repositories is published <a href=\"http:\/\/rogerdudler.github.io\/git-guide\/\" target=\"_blank\" rel=\"noopener noreferrer\">here<\/a>!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I order to initialize a git repository you have to perform the following steps: $ cd \/path\/to\/project $ git init $ git remote add origin https:\/\/xxxxx.com\/repo $ git add . $ git commit -m \u2018initial commit\u2019 $ git push origin [&hellip;]<\/p>\n<div class=\"link-more\"><a href=\"https:\/\/amsd.go.ro\/wordpress\/?p=34#more-34\" class=\"more-link\">Continue reading &#10142; <span class=\"screen-reader-text\">How to initialize a GIT repository<\/span><\/a><\/div>","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[8,12],"class_list":["post-34","post","type-post","status-publish","format-standard","hentry","category-technology","tag-ps_20","tag-ps_17"],"_links":{"self":[{"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/34","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=34"}],"version-history":[{"count":2,"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions"}],"predecessor-version":[{"id":243,"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=\/wp\/v2\/posts\/34\/revisions\/243"}],"wp:attachment":[{"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=34"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=34"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/amsd.go.ro\/wordpress\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=34"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}