Blog Archives

How to recover lost files added to Git but not committed

Posted on April 16, 2016. Filed under: Uncategorized | Tags: , , |

How to recover lost files added to Git but not committed If you lose something [in Git], don’t panic. There’s a good chance that you can find someone who will be able to hunt it down again. So said MJD’s previous blog. This is a write-up of how he recovered some files that he accidentally […]

Read Full Post | Make a Comment ( Comments Off on How to recover lost files added to Git but not committed )

The best way to store your dotfiles: A bare Git repository

Posted on February 17, 2016. Filed under: Uncategorized | Tags: , , |

The best way to store your dotfiles: A bare Git repository Recently I read about this amazing technique in an Hacker News thread on people’s solutions to store their dotfiles. User StreakyCobra showed his elegant setup and … It made so much sense! I am in the process of switching my own system to the […]

Read Full Post | Make a Comment ( Comments Off on The best way to store your dotfiles: A bare Git repository )

git stashed

Posted on June 17, 2015. Filed under: Uncategorized | Tags: , , , |

git stashed Typically, git stash just shows you the items in your stash. Now, git stashed shows you how long ago items were stashed

Read Full Post | Make a Comment ( Comments Off on git stashed )

How to undo (almost) anything with Git

Posted on June 9, 2015. Filed under: Uncategorized | Tags: , , , , , , , , |

How to undo (almost) anything with Git One of the most useful features of any version control system is the ability to “undo” your mistakes. In Git, “undo” can mean many slightly different things. When you make a new commit, Git stores a snapshot of your repository at that specific moment in time; later, you […]

Read Full Post | Make a Comment ( Comments Off on How to undo (almost) anything with Git )

How to Write a Git Commit Message

Posted on June 6, 2015. Filed under: Uncategorized | Tags: , |

How to Write a Git Commit Message A well-crafted commit message is the best way to communicate context about a change to fellow developers (and indeed to their future selves). A diff will tell you what changed, but only the commit message can properly tell you why. The author suggests that there will be several […]

Read Full Post | Make a Comment ( Comments Off on How to Write a Git Commit Message )

First aid git

Posted on May 9, 2015. Filed under: Uncategorized | Tags: , |

First aid git is a searchable collection of the most frequently asked git questions

Read Full Post | Make a Comment ( Comments Off on First aid git )

Git Immersion

Posted on September 12, 2014. Filed under: Uncategorized | Tags: , , |

Git Immersion is a guided tour that walks through the fundamentals of Git, inspired by the premise that to know a thing is to do it.

Read Full Post | Make a Comment ( Comments Off on Git Immersion )

Making git bisect more useful

Posted on July 4, 2014. Filed under: Uncategorized | Tags: , , , , |

Making git bisect more useful If you’ve ever used git bisect, you know what an incredibly useful tool this is. It allows you to do a binary search through commits to find out which commit caused a particular error. Many people seem unaware of git bisect run … which automates this even further, but it […]

Read Full Post | Make a Comment ( Comments Off on Making git bisect more useful )

A Hackers Guide to git

Posted on May 27, 2014. Filed under: Uncategorized | Tags: , |

A Hackers Guide to git Git is currently the most widely used version control system in the world, mostly thanks to GitHub. By that measure, I’d argue that it’s also the most misunderstood version control system in the world. This statement probably doesn’t ring true straight away because on the surface, Git is pretty simple. […]

Read Full Post | Make a Comment ( Comments Off on A Hackers Guide to git )

Schwern’s .gitconfig

Posted on February 3, 2013. Filed under: Uncategorized | Tags: |

https://github.com/schwern/dotfiles/blob/master/.gitconfig

Read Full Post | Make a Comment ( None so far )

« Previous Entries Next Entries »

Liked it here?
Why not try sites on the blogroll...