File tree 2 files changed +508
-500
lines changed
2 files changed +508
-500
lines changed Original file line number Diff line number Diff line change @@ -167,6 +167,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
167
167
* [ Checkout a commit prior to a day ago] ( #checkout-a-commit-prior-to-a-day-ago )
168
168
* [ Push a new local branch to remote repository and track] ( #push-a-new-local-branch-to-remote-repository-and-track )
169
169
* [ Change a branch base] ( #change-a-branch-base )
170
+ * [ Use SSH instead of HTTPs for remotes] ( #use-ssh-instead-of-https-for-remotes )
170
171
171
172
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
172
173
<!-- @doxie.inject end toc -->
@@ -1179,5 +1180,10 @@ git push -u origin <branch_name>
1179
1180
git rebase --onto <new_base> <old_base>
1180
1181
```
1181
1182
1183
+ ## Use SSH instead of HTTPs for remotes
1184
+ ```sh
1185
+ git config --global url.' [email protected] :
' .insteadOf ' https://github.com/
'
1186
+ ```
1187
+
1182
1188
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
1183
1189
<!-- @doxie.inject end -->
You can’t perform that action at this time.
0 commit comments