{"id":2104,"date":"2013-03-15T18:10:40","date_gmt":"2013-03-15T18:10:40","guid":{"rendered":"https:\/\/2013.atlanta.wordcamp.org\/?p=2104"},"modified":"2013-03-18T17:58:03","modified_gmt":"2013-03-18T17:58:03","slug":"live-blogging-what-the-git","status":"publish","type":"post","link":"https:\/\/atlanta.wordcamp.org\/2013\/live-blogging-what-the-git\/","title":{"rendered":"What The Git?"},"content":{"rendered":"<p><strong>Speaker:<\/strong> Nathaniel Schweinberg<br \/>\n<strong>Twitter:<\/strong> <a href=\"http:\/\/www.twitter.com\/nathanielks\" target=\"_blank\">@nathanielks<\/a><\/p>\n<ul>\n<li>git doesn\u2019t overload your HDD with all the extra versions<\/li>\n<li>git allows you to focus on the feature you\u2019re writing<\/li>\n<li>git allows multiple developers to work on the same project<\/li>\n<\/ul>\n<p>how to get started?<\/p>\n<ul>\n<li>install git<\/li>\n<li>open terminal<\/li>\n<li>get it setup\n<ul>\n<li><strong>git init<\/strong> &#8212; inializes a git repositroy in current folder<\/li>\n<li><strong>git add .<\/strong> &#8212; adds file . to the staging area (. means current folder and all files inside)<\/li>\n<li><strong>git commit -m \u2018initial commit\u2019<\/strong> &#8212; commits files added to staging area (-m adds commit message)<\/li>\n<li><strong>git status<\/strong> &#8212; shows the current status of the working directory<\/li>\n<\/ul>\n<\/li>\n<li>branching encourages a few things\n<ul>\n<li>allows you to branch very easily<\/li>\n<li>encourages feature based workflow<\/li>\n<li>allows for experimentation<\/li>\n<\/ul>\n<\/li>\n<li><strong>git branch <em>name<\/em><\/strong> &#8212; create new branch to work from<\/li>\n<li><strong>git checkout <em>branchname<\/em><\/strong> &#8212; sets the working branch to <em>branchname<\/em><\/li>\n<li><strong>git merge <em>branchname<\/em><\/strong> &#8212; merges committed changes from <em>branchname<\/em> with current branch<\/li>\n<li>Repositories &#8211; bitbucket unlimited private and github unlimited public repos<\/li>\n<li>two basic actions\n<ul>\n<li><strong>git push<\/strong> &#8212; pushes changes to remote repo<\/li>\n<li><strong>git pull<\/strong> &#8212; pulls changes from remote repo<\/li>\n<\/ul>\n<\/li>\n<li><strong>git clone<\/strong> &#8212; duplicate a remote repository to your computer<\/li>\n<li>commit early, commit often<\/li>\n<li>use descriptive commit messages<\/li>\n<li>master branch is stable ONLY. &#8211; always develop on a separate branch<\/li>\n<li>branch naming: initials\/feature-name &#8211; ex mh\/cool-feature<\/li>\n<\/ul>\n<p><strong>Resource:<\/strong> <a href=\"http:\/\/themes.simplethemes.com\/skeleton\/\" target=\"_blank\">WordPress skeleton<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Speaker: Nathaniel Schweinberg Twitter: @nathanielks git doesn\u2019t overload your HDD with all the extra versions git allows you to focus on the feature you\u2019re writing git allows multiple developers to work on the same project how to get started? install git open terminal get it setup git init &#8212; inializes a git repositroy in current [&hellip;]<\/p>\n","protected":false},"author":8480538,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[126376],"tags":[],"class_list":["post-2104","post","type-post","status-publish","format-standard","hentry","category-live-blogging"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p2YmVp-xW","_links":{"self":[{"href":"https:\/\/atlanta.wordcamp.org\/2013\/wp-json\/wp\/v2\/posts\/2104","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/atlanta.wordcamp.org\/2013\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/atlanta.wordcamp.org\/2013\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/atlanta.wordcamp.org\/2013\/wp-json\/wp\/v2\/users\/8480538"}],"replies":[{"embeddable":true,"href":"https:\/\/atlanta.wordcamp.org\/2013\/wp-json\/wp\/v2\/comments?post=2104"}],"version-history":[{"count":6,"href":"https:\/\/atlanta.wordcamp.org\/2013\/wp-json\/wp\/v2\/posts\/2104\/revisions"}],"predecessor-version":[{"id":2203,"href":"https:\/\/atlanta.wordcamp.org\/2013\/wp-json\/wp\/v2\/posts\/2104\/revisions\/2203"}],"wp:attachment":[{"href":"https:\/\/atlanta.wordcamp.org\/2013\/wp-json\/wp\/v2\/media?parent=2104"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/atlanta.wordcamp.org\/2013\/wp-json\/wp\/v2\/categories?post=2104"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/atlanta.wordcamp.org\/2013\/wp-json\/wp\/v2\/tags?post=2104"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}