Skip to content

Commit 6eee233

Browse files
Updating README with Git.config examples
1 parent 9796786 commit 6eee233

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,20 @@ Require the 'git' gem.
5757
require 'git'
5858
```
5959

60+
Git env config
61+
62+
```ruby
63+
Git.config do |config|
64+
# If you want to use a custom git binary
65+
config.binary_path = '/git/bin/path'
66+
67+
# If you need to use a custom SSH Key
68+
config.ssh_key = '/path/to/ssh/key'
69+
end
70+
71+
```
72+
73+
6074
Here are the operations that need read permission only.
6175

6276
```ruby

0 commit comments

Comments
 (0)