Articles tagged with git

  1. [Git] remote.origin.prune vs fetch.prune

    Posted on in programming

    What is the difference between git config remote.origin.prune true and git config fetch.prune true?

    When you fetch from a remote repository, Git creates a remote-tracking branch for each branch in the remote repository. These remote-tracking branches are used to keep track of the state of the remote …

  2. Git Remote Moved?

    Posted on in programming

    There are lots of reasons why your Git repository remotes might move. I recently dealt with a migration to GitHub. You can always just clone the repository again and go about your business, but I had several local branches I wanted to keep working on.

    There's lots of ways to …

  3. [Git] Per Repo SSH Identity

    Posted on in programming

    For work, I need a personal GitHub account in addition to my Enterprise Managed User (EMU) account. After updating my SSH keys the other day, I realized I had inadvertently locked myself out of using my personal account on my work laptop.

    Here's what that looked like:

    $ git pull
    ERROR …
  4. Here Comes Git

    Posted on in uncategorized

    In January of 2016, I joined Facebook and had to make the switch from git to hg. To be honest, I wasn't really some sort of zen master of git, but it didn't take me long to completely forget everything I knew about it.

    Now that I've moved on to …

  5. Implementing 'git show' in Mercurial

    Posted on in Software

    One of my frequently used git commands is 'git show <rev>'. As in, "show me what the heck this guy did here." Unfortunately, Mercurial doesn't have the same command, but it's easy enough to implement it using an alias in your .hgrc.

    The command you would run from the command …

  6. {git, hg} Custom Log Output

    Posted on in Software

    The standard log output for both Git and Mercurial is a bit verbose for my liking. I keep my terminal at ~50 lines, which results in only getting about 8 to 10 log entries depending on how verbose the commit was. This isn't a big deal if you are just …

My Bookshelf

Reading Now

Other Stuff