diff options
| -rw-r--r-- | git.html.markdown | 10 | 
1 files changed, 8 insertions, 2 deletions
| diff --git a/git.html.markdown b/git.html.markdown index f678f9d1..bedc9853 100644 --- a/git.html.markdown +++ b/git.html.markdown @@ -371,9 +371,12 @@ Pulls from a repository and merges it with another branch.  # Update your local repo, by merging in new changes  # from the remote "origin" and "master" branch.  # git pull <remote> <branch> -# git pull => implicitly defaults to => git pull origin master  $ git pull origin master +# By default, git pull will update your current branch +# by merging in new changes from its remote-tracking branch  +$ git pull +  # Merge in changes from remote branch and rebase  # branch commits onto your local repo, like: "git pull <remote> <branch>, git rebase <branch>"  $ git pull origin master --rebase @@ -387,9 +390,12 @@ Push and merge changes from a branch to a remote & branch.  # Push and merge changes from a local repo to a  # remote named "origin" and "master" branch.  # git push <remote> <branch> -# git push => implicitly defaults to => git push origin master  $ git push origin master +# By default, git push will push and merge changes from +# the current branch to its remote-tracking branch  +$ git push +  # To link up current local branch with a remote branch, add -u flag:  $ git push -u origin master  # Now, anytime you want to push from that same local branch, use shortcut: | 
