{"id":7652,"date":"2018-06-26T23:34:40","date_gmt":"2018-06-26T15:34:40","guid":{"rendered":"http:\/\/rmohan.com\/?p=7652"},"modified":"2018-06-26T23:34:40","modified_gmt":"2018-06-26T15:34:40","slug":"git-cmd","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=7652","title":{"rendered":"git cmd"},"content":{"rendered":"<table class=\"highlight tab-size js-file-line-container\" data-tab-size=\"8\">\n<tbody>\n<tr>\n<td id=\"LC6\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-s\"> git pull # will get you repo updates<\/span><\/td>\n<\/tr>\n<tr>\n<td id=\"L7\" class=\"blob-num js-line-number\" data-line-number=\"7\"><\/td>\n<td id=\"LC7\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-s\"> git add . # will add files in your dir<\/span><\/td>\n<\/tr>\n<tr>\n<td id=\"L8\" class=\"blob-num js-line-number\" data-line-number=\"8\"><\/td>\n<td id=\"LC8\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-s\"> git add [dirname]\/* # will add files under a new dir<\/span><\/td>\n<\/tr>\n<tr>\n<td id=\"L9\" class=\"blob-num js-line-number\" data-line-number=\"9\"><\/td>\n<td id=\"LC9\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-s\"> git commit -m <span class=\"pl-pds\">&#8220;<\/span><\/span>your comment<span class=\"pl-s\"><span class=\"pl-pds\">&#8220;<\/span> # will commit your code to your changes<\/span><\/td>\n<\/tr>\n<tr>\n<td id=\"L10\" class=\"blob-num js-line-number\" data-line-number=\"10\"><\/td>\n<td id=\"LC10\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-s\"> git push # will push your code to a reposatory<\/span><\/td>\n<\/tr>\n<tr>\n<td id=\"L11\" class=\"blob-num js-line-number\" data-line-number=\"11\"><\/td>\n<td id=\"LC11\" class=\"blob-code blob-code-inner js-file-line\"><span class=\"pl-s\"> git pull # will pull down new reposatory updates<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p> git pull # will get you repo updates git add . # will add files in your dir git add [dirname]\/* # will add files under a new dir git commit -m &#8220;your comment&#8220; # will commit your code to your changes git push # will push your code to a reposatory git pull [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[96],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7652"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7652"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7652\/revisions"}],"predecessor-version":[{"id":7653,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/7652\/revisions\/7653"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7652"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7652"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7652"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}