mirror of
https://github.com/git-tips/tips.git
synced 2024-09-21 00:01:03 +02:00
Merge pull request #150 from ChaithanyaGK/remote_push
Push a new local branch to remote and track
This commit is contained in:
commit
2be7828ce5
|
@ -164,6 +164,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
|
|||
* [List all git aliases](#list-all-git-aliases)
|
||||
* [Show git status short](#show-git-status-short)
|
||||
* [Checkout a commit prior to a day ago](#checkout-a-commit-prior-to-a-day-ago)
|
||||
* [Push a new local branch to remote repository and track](#push-a-new-local-branch-to-remote-repository-and-track)
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end toc -->
|
||||
|
@ -1156,5 +1157,10 @@ git status --short --branch
|
|||
git checkout master@{yesterday}
|
||||
```
|
||||
|
||||
## Push a new local branch to remote repository and track
|
||||
```sh
|
||||
git push -u origin <branch_name>
|
||||
```
|
||||
|
||||
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
|
||||
<!-- @doxie.inject end -->
|
||||
|
|
Loading…
Reference in New Issue
Block a user