diff --git a/README.md b/README.md index a2160c7..01c1492 100644 --- a/README.md +++ b/README.md @@ -779,13 +779,13 @@ This will give you a local copy of the branch `daves`, and any update that has b ### I want to create a new remote branch from current local one ```sh -$ git push +$ git push HEAD ``` If you would also like to set that remote branch as upstream for the current one, use the following instead: ```sh -$ git push -u +$ git push -u HEAD ``` With the `upstream` mode and the `simple` (default in Git 2.0) mode of the `push.default` config, the following command will push the current branch with regards to the remote branch that has been registered previously with `-u`: @@ -794,7 +794,7 @@ With the `upstream` mode and the `simple` (default in Git 2.0) mode of the `push $ git push ``` -The behavior of the other modes of ```git push``` is described in the doc of push.default. +The behavior of the other modes of `git push` is described in the [doc of `push.default`](https://git-scm.com/docs/git-config#git-config-pushdefault). ### I want to set a remote branch as the upstream for a local branch