Skip to content

Commit 9612421

Browse files
committed
Tip: Use SSH instead of HTTPs for remotes.
1 parent 3853ef2 commit 9612421

File tree

2 files changed

+508
-500
lines changed

2 files changed

+508
-500
lines changed

README.md

+6
Original file line numberDiff line numberDiff 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>
11791180
git 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 -->

0 commit comments

Comments
 (0)