{"id":7,"date":"2022-01-14T03:12:03","date_gmt":"2022-01-14T03:12:03","guid":{"rendered":"https:\/\/blogs.oregonstate.edu\/thisistrue\/?p=7"},"modified":"2022-01-14T03:19:36","modified_gmt":"2022-01-14T03:19:36","slug":"git-your-game-on","status":"publish","type":"post","link":"https:\/\/blogs.oregonstate.edu\/thisistrue\/2022\/01\/14\/git-your-game-on\/","title":{"rendered":"Git Your Game On"},"content":{"rendered":"\n<p>I don&#8217;t know if it&#8217;s just me but quite often I struggle in Github.  There is jargon that makes little sense and a tree structure that can expand so rapidly it can make one&#8217;s head spin.  There is a learning curve to understanding how best to use it.  I wish there was a single definite way to wrap your head around Github, but there isn\u2019t.  <\/p>\n\n\n\n<p>What would be helpful is if work flows like steps in committing, steps in branching leading to committing, steps in fixing a bad commit, steps in reverting to a previous version, and things of such nature. These are the real issues of using git.  But the real question and art to working with Github is how often to commit.  Are we committing too little or too much?  Committing is the core of using git. Essentially, for any file in development, when you do a commit you take those files and say &#8220;this version of my repo includes my code and files.  This is my daily addition&#8221;. Since git has a very low overhead, and makes version management really easy, this should be often. That way, when your code breaks in some unexpected way and you need to roll back, you&#8217;re only losing a smaller amount of code.<\/p>\n\n\n\n<p>So how often do you commit?  As it&#8217;s been written by so many who use GitHub religiously, &#8220;The general rule of thumb is to commit early and commit often&#8221;.  This means that it&#8217;s better to perform a commit than not to commit at all and it&#8217;s best to learn good practices around source control.  In general, a commit should have one\u00a0primary\u00a0change it is effecting in the codebase.  Commits should be pushed every day, at an absolute minimum. Ideally you\u2019re pushing after every commit, multiple times a day.\u00a0<\/p>\n\n\n\n<p>Most importantly, your git doesn\u2019t need to be perfect. And here\u2019s more: it doesn\u2019t even need to work. My thoughts is that bad git is better than no git. The lessons you learn from bad git and the fact that you attempted it, especially if it\u2019s terrible, still can make you stand out.<\/p>\n\n\n\n<p>So let&#8217;s get going\u2060 \u2014 it\u2019s never too late! Spending time on git shows that you\u2019re passionate about learning and growing your GitHub skills.\u00a0<\/p>\n\n\n\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I don&#8217;t know if it&#8217;s just me but quite often I struggle in Github. There is jargon that makes little sense and a tree structure that can expand so rapidly it can make one&#8217;s head spin. There is a learning curve to understanding how best to use it. I wish there was a single definite&hellip; <a class=\"more-link\" href=\"https:\/\/blogs.oregonstate.edu\/thisistrue\/2022\/01\/14\/git-your-game-on\/\">Continue reading <span class=\"screen-reader-text\">Git Your Game On<\/span><\/a><\/p>\n","protected":false},"author":11904,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7","post","type-post","status-publish","format-standard","hentry","category-uncategorized","entry"],"_links":{"self":[{"href":"https:\/\/blogs.oregonstate.edu\/thisistrue\/wp-json\/wp\/v2\/posts\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blogs.oregonstate.edu\/thisistrue\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.oregonstate.edu\/thisistrue\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/thisistrue\/wp-json\/wp\/v2\/users\/11904"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/thisistrue\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":3,"href":"https:\/\/blogs.oregonstate.edu\/thisistrue\/wp-json\/wp\/v2\/posts\/7\/revisions"}],"predecessor-version":[{"id":10,"href":"https:\/\/blogs.oregonstate.edu\/thisistrue\/wp-json\/wp\/v2\/posts\/7\/revisions\/10"}],"wp:attachment":[{"href":"https:\/\/blogs.oregonstate.edu\/thisistrue\/wp-json\/wp\/v2\/media?parent=7"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/thisistrue\/wp-json\/wp\/v2\/categories?post=7"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.oregonstate.edu\/thisistrue\/wp-json\/wp\/v2\/tags?post=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}