Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c0081b2

Browse files
phdrubrettcannon
authored andcommitted
Use git push -u to create remote-tracking branch (#82)
1 parent 20c7a96 commit c0081b2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

committing.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -350,6 +350,15 @@ push it to my private branch I do::
350350

351351
git push origin bug1234
352352

353+
Option ``-u|--set-upstream`` creates a remote-tracking branch that tracks what
354+
have been pushed to ``origin``::
355+
356+
git push -u origin bug1234
357+
358+
That allows to avoid rebasing beyond already pushed commits.
359+
``git status --branch`` and ``git branch --verbose`` remind that the branch(es)
360+
have not pushed commits.
361+
353362

354363
Synchronizing remotes
355364
'''''''''''''''''''''

0 commit comments

Comments
 (0)