File tree Expand file tree Collapse file tree 2 files changed +508
-500
lines changed Expand file tree Collapse file tree 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)`.
167167* [ Checkout a commit prior to a day ago] ( #checkout-a-commit-prior-to-a-day-ago )
168168* [ Push a new local branch to remote repository and track] ( #push-a-new-local-branch-to-remote-repository-and-track )
169169* [ Change a branch base] ( #change-a-branch-base )
170+ * [ Use SSH instead of HTTPs for remotes] ( #use-ssh-instead-of-https-for-remotes )
170171
171172<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
172173<!-- @doxie.inject end toc -->
@@ -1179,5 +1180,10 @@ git push -u origin <branch_name>
11791180git rebase --onto <new_base> <old_base>
11801181```
11811182
1183+ ## Use SSH instead of HTTPs for remotes
1184+ ```sh
1185+ git config --global url.' [email protected] :
' .insteadOf ' https://github.com/
' 1186+ ```
1187+
11821188<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
11831189<!-- @doxie.inject end -->
You can’t perform that action at this time.
0 commit comments