Skip to content

Instantly share code, notes, and snippets.

@JulianJorgensen
Created May 30, 2013 19:04
Show Gist options
  • Select an option

  • Save JulianJorgensen/5680278 to your computer and use it in GitHub Desktop.

Select an option

Save JulianJorgensen/5680278 to your computer and use it in GitHub Desktop.
alias pull="git fetch upstream && git pull upstream master"
alias commit="git add . && git commit -a"
@pgib
Copy link

pgib commented May 30, 2013

Line 1 should be && git merge upstream/master

Otherwise, you might as well just do git pull.

@pgib
Copy link

pgib commented May 30, 2013

Also, line 2 is extremely dangerous as you don't have an opportunity to see which files you're adding. You should be using GitX or something equivalent to review your commit. This is how we end up with crap in our repos that shouldn't be in there.

@eddanger
Copy link

Never git add . you should use something like GitX so you have context of your commits. If you do three fixes, make three commits.

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