forked from git-tips/tips
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tip: Use SSH instead of HTTPs for remotes.
- Loading branch information
Showing
2 changed files
with
508 additions
and
500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)`. | |
* [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 --> | ||
|
@@ -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 --> |
Oops, something went wrong.