GIt https://www.garfieldtech.com/ en Start Git with an empty commit https://www.garfieldtech.com/blog/git-empty-commit <span class="field field--name-title field--type-string field--label-hidden">Start Git with an empty commit</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Recently I've had reason to start several new projects with Git. That's nothing exciting (except for me), but it means I've been making a lot of first-commits, and often rebasing my early commit history before making it public. That, however, runs into an interesting problem: You can't easily rebase the first commit.</p> <p>Sometimes that doesn't matter. Lately, though, I've repeatedly found myself wanting to change that first commit, often to remove a file that I included in the initial commit inadvertently.</p> <p>Fortunately, Git offers a couple of ways around this situation. My personal favorite is to simply start the history with a null commit. Git normally won't let you make a commit if there's nothing to do, but you can easily disable that check. My new Git projects now tend to start like so:</p></div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span>Larry</span></span> <span class="field field--name-created field--type-created field--label-hidden">16 January 2017 - 5:45pm</span> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/blog/git-empty-commit" rel="tag" title="Start Git with an empty commit" hreflang="en">Read more<span class="visually-hidden"> about Start Git with an empty commit</span></a></li><li class="comment-comments"><a href="/blog/git-empty-commit#comments" title="Jump to the first comment." hreflang="en">4 comments</a></li><li class="comment-new-comments"><a href="/taxonomy/term/85/feed" class="hidden" title="Jump to the first new comment." data-history-node-last-comment-timestamp="1484751837" data-history-node-field-name="comment"></a></li></ul> </div> Mon, 16 Jan 2017 23:45:17 +0000 Larry 243 at https://www.garfieldtech.com Drupal CVS dead at age 10 https://www.garfieldtech.com/blog/cvs-obituary <span class="field field--name-title field--type-string field--label-hidden">Drupal CVS dead at age 10</span> <div class="clearfix text-formatted field field--name-body field--type-text-with-summary field--label-hidden field__item"><p>Drupal's CVS repository was pronounced dead this Thursday 24 February at 6:08 pm US Eastern Time. Cause of death was reported acute age combined with an inability to properly merge. CVS is survived by approximately 7000 Drupal projects and a new farm of Git repositories.</p> </div> <span class="field field--name-uid field--type-entity-reference field--label-hidden"><span>Larry</span></span> <span class="field field--name-created field--type-created field--label-hidden">25 February 2011 - 2:13am</span> <div class="node__links"> <ul class="links inline"><li class="node-readmore"><a href="/blog/cvs-obituary" rel="tag" title="Drupal CVS dead at age 10" hreflang="und">Read more<span class="visually-hidden"> about Drupal CVS dead at age 10</span></a></li><li class="comment-comments"><a href="/blog/cvs-obituary#comments" title="Jump to the first comment." hreflang="und">5 comments</a></li><li class="comment-new-comments"><a href="/taxonomy/term/85/feed" class="hidden" title="Jump to the first new comment." data-history-node-last-comment-timestamp="1298661256" data-history-node-field-name="comment"></a></li></ul> </div> Fri, 25 Feb 2011 08:13:14 +0000 Larry 188 at https://www.garfieldtech.com