mirror of
https://github.com/status-im/nimbus-eth1.git
synced 2025-01-24 19:19:21 +00:00
Makefile: better "github-ssh" target
This commit is contained in:
parent
63a976868d
commit
9806110979
6
Makefile
6
Makefile
@ -149,10 +149,8 @@ mrproper: clean
|
|||||||
|
|
||||||
# for when you want to use SSH keys with GitHub
|
# for when you want to use SSH keys with GitHub
|
||||||
github-ssh:
|
github-ssh:
|
||||||
sed -i 's#https://github.com/#git@github.com:#' .git/config
|
git config url."git@github.com:".insteadOf "https://github.com/"
|
||||||
git config --file .gitmodules --get-regexp url | while read LINE; do \
|
git submodule foreach --recursive 'git config url."git@github.com:".insteadOf "https://github.com/"'
|
||||||
git config `echo $${LINE} | sed 's#https://github.com/#git@github.com:#'` \
|
|
||||||
;done
|
|
||||||
|
|
||||||
#- re-builds the Nim compiler (not usually needed, because `make update` does it when necessary)
|
#- re-builds the Nim compiler (not usually needed, because `make update` does it when necessary)
|
||||||
#- allows parallel building with the '+' prefix
|
#- allows parallel building with the '+' prefix
|
||||||
|
@ -108,6 +108,12 @@ make V=0 # quiet
|
|||||||
make V=2 test # more verbose than usual
|
make V=2 test # more verbose than usual
|
||||||
```
|
```
|
||||||
|
|
||||||
|
- if you want to use SSH keys with GitHub:
|
||||||
|
|
||||||
|
```bash
|
||||||
|
make github-ssh
|
||||||
|
```
|
||||||
|
|
||||||
#### Git submodule workflow
|
#### Git submodule workflow
|
||||||
|
|
||||||
Working on a dependency:
|
Working on a dependency:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user