File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -164,6 +164,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
164
164
* [ List all git aliases] ( #list-all-git-aliases )
165
165
* [ Show git status short] ( #show-git-status-short )
166
166
* [ 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 )
167
168
168
169
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
169
170
<!-- @doxie.inject end toc -->
@@ -1156,5 +1157,10 @@ git status --short --branch
1156
1157
git checkout master@{yesterday}
1157
1158
```
1158
1159
1160
+ ## Push a new local branch to remote repository and track
1161
+ ```sh
1162
+ git push -u origin <branch_name>
1163
+ ```
1164
+
1159
1165
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
1160
1166
<!-- @doxie.inject end -->
You can’t perform that action at this time.
0 commit comments