Created
May 30, 2013 19:04
-
-
Save JulianJorgensen/5680278 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| alias pull="git fetch upstream && git pull upstream master" | |
| alias commit="git add . && git commit -a" |
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.
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
Line 1 should be
&& git merge upstream/masterOtherwise, you might as well just do
git pull.