Skip to content

Commit 61171a4

Browse files
committed
Push a new local branch to remote and track
1 parent 89e7432 commit 61171a4

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
164164
* [List all git aliases](#list-all-git-aliases)
165165
* [Show git status short](#show-git-status-short)
166166
* [Checkout a commit prior to a day ago](#checkout-a-commit-prior-to-a-day-ago)
167+
* [Push a new local branch to remote repository and track](#push-a-new-local-branch-to-remote-repository-and-track)
167168

168169
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
169170
<!-- @doxie.inject end toc -->
@@ -1156,5 +1157,10 @@ git status --short --branch
11561157
git checkout master@{yesterday}
11571158
```
11581159
1160+
## Push a new local branch to remote repository and track
1161+
```sh
1162+
git push -u origin <branch_name>
1163+
```
1164+
11591165
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
11601166
<!-- @doxie.inject end -->

0 commit comments

Comments
 (0)