Skip to content

Instantly share code, notes, and snippets.

@atomkirk
Last active August 29, 2015 13:56
Show Gist options
  • Save atomkirk/9272874 to your computer and use it in GitHub Desktop.
Save atomkirk/9272874 to your computer and use it in GitHub Desktop.
My Favorite Git Commands

Git with your host, Adam Kirk

Introduction

I do not claim to be smart at all, but I've worked with very smart people and they have taught me about git and how it works at a fundamental level, so I feel at this point qualified to offer some of the stuff I've learned as best practices. So her'goes.

Fetch All

When you pull, you sometimes don't know what you're pulling. It can be helpful to use git fetch --all and compare what's on your remotes with git diff origin/master to see what's different.

more to come…

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment