Skip to content

Commit

Permalink
Tip: Use SSH instead of HTTPs for remotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
hemanth committed Jul 25, 2018
1 parent 3853ef2 commit 9612421
Show file tree
Hide file tree
Showing 2 changed files with 508 additions and 500 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end toc -->
Expand Down Expand Up @@ -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.'[email protected]:'.insteadOf 'https://github.com/'
```
<!-- Don’t remove or change the comment below – that can break automatic updates. More info at <http://npm.im/doxie.inject>. -->
<!-- @doxie.inject end -->
Loading

0 comments on commit 9612421

Please sign in to comment.