Yes. I’m a latecomer to the Sierra game (due mainly to an audio hardware driver I had to wait on to be upgraded to Sierra, which finally was updated but probably won’t be updated to High Sierra…), and most developers have probably already run into this problem and have dealt with it accordingly. However, I thought it might be a good idea to capture this here for posterity… Just this morning, immediately after upgrading to macOS Sierra, I experienced a problem by which Git began incessantly asking for my passphrase. This was an unwelcome surprise to me, but thankfully there’s a reasonably simple fix, thanks to this SuperUser suggestion: macOS keeps asking my ssh passphrase since I updated to Sierra – Super[…]

This is one of the many git functions I always have to look up, and it always makes me insane at its non-intuitiveness. However, as it is a necessary evil, I thought it useful to capture it here. Believe it or not, you have to use git push to delete. You heard that right. Stop gawking. Jaw closed. OK so here’s how you do it: git push origin :[name of branch] As a concrete, though perhaps not entirely realistic example: git push origin :my-awesome-feature Thanks to the following blogs for their constant assistance in helping me remember (or not remember) this function: git ready : push and delete remote branches Yuji Tomita : Git — Delete Remote Branch Thanks guys!

Category :

Good quick help for using Git from Scott Paul Robertson. Git in 5 Minutes Git In Five Minutes Many people consider Git to be too confusing or complex to be a choice for version control. Yet Git considers to grow in adoption, and many interesting things have grown up around it. This document is geared for someone wanted to get started with Git, often coming from a Subversion background. For most basic needs this document will cover 70 to 90 percent of your use. The document has some nice succinct suggestions, but there is a subtle but very important comment he makes in the last subheading, Sweeping Changes Under the Rug for Later, in which he says: When moving between branches[…]

I found this tip to be very useful for adding a “co” shortcut to Git… Git Command Shortcuts (aliases) (evanjones.ca) I’ve been using Mercurial to track my personal development projects. However, Git appears to be more popular, and I’ve needed to use it. The two are very similar, but my biggest annoyance is that Mercurial automatically completes commands using the characters you have typed, so hg st is a shortcut for hg status. Git does not do this by default, but you can add shortcuts with: git config –global alias.shortcut command. Example: git config –global alias.st status. This makes me very happy. See the git aliases documentation on the git wiki for details.