Tip: Use SSH instead of HTTPs for remotes.

This commit is contained in:
Hemanth.HM 2018-07-25 11:26:51 +05:30
parent 3853ef2829
commit 96124215b6
2 changed files with 508 additions and 500 deletions

View File

@ -167,6 +167,7 @@ P.S: All these commands are tested on `git version 2.7.4 (Apple Git-66)`.
* [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)
* [Change a branch base](#change-a-branch-base)
* [Use SSH instead of HTTPs for remotes](#use-ssh-instead-of-https-for-remotes)
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
@ -1179,5 +1180,10 @@ git push -u origin <branch_name>
git rebase --onto <new_base> <old_base>
```
## Use SSH instead of HTTPs for remotes
```sh
git config --global url.'git@github.com:'.insteadOf 'https://github.com/'
```
<!-- Dont remove or change the comment below that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->

1002
tips.json

File diff suppressed because it is too large Load Diff