-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. configure in .gitconfig file 2. support local repo config: gitopen.remote
- Loading branch information
Showing
5 changed files
with
106 additions
and
15 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 |
---|---|---|
|
@@ -95,9 +95,31 @@ If you are use [GitHub Enterprise](https://enterprise.github.com/), | |
[GitLab Community Edition (CE), GitLab Enterprise Edition (EE)](https://gitlab.org/), | ||
[Atlassian Stash](https://www.atlassian.com/software/stash), | ||
~~[GitCafe Enterprise](https://enterprise.gitcafe.com/)~~ | ||
you need config like: | ||
You need config in ~/.gitconfig file: | ||
|
||
~/.gitopenrc | ||
``` | ||
[gitopen "github.company.com"] | ||
type = github | ||
protocol = https | ||
[gitopen "gitlab.company.net"] | ||
type = gitlab | ||
protocol = http | ||
``` | ||
|
||
You can config it by git command-line: | ||
|
||
```bash | ||
; global | ||
$ git config --global gitopen.github.company.com.type github | ||
$ git config --global gitopen.github.company.com.protocol https | ||
|
||
; set local repo default remote name. | ||
$ git remote add gitlabRemote [email protected]:hotoo/gitopen.git | ||
$ git config gitopen.remote gitlabRemote | ||
``` | ||
|
||
|
||
Also you can config it in ~/.gitopenrc file for global settings: | ||
|
||
```yaml | ||
github.company.com: | ||
|
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
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
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
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