mirror of
https://github.com/flynx/git-utils.git
synced 2025-12-25 12:52:05 +00:00
Merge branch 'master' of github.com:flynx/git-utils
This commit is contained in:
commit
c0c8dd5eca
12
README.md
12
README.md
@ -15,6 +15,7 @@ Provided commands:
|
|||||||
These enable setting up and maintaining mutiple development machines with
|
These enable setting up and maintaining mutiple development machines with
|
||||||
a number of git repositories.
|
a number of git repositories.
|
||||||
|
|
||||||
|
|
||||||
## Workflow
|
## Workflow
|
||||||
|
|
||||||
In a tree with multiple git repositories:
|
In a tree with multiple git repositories:
|
||||||
@ -24,12 +25,21 @@ In a tree with multiple git repositories:
|
|||||||
```
|
```
|
||||||
- to create the same env on a different computer:
|
- to create the same env on a different computer:
|
||||||
```shell
|
```shell
|
||||||
$ git listall -o -r > repos.lst
|
$ git listall -r > repos.lst
|
||||||
```
|
```
|
||||||
move the `repos.lst` to the target machine and:
|
move the `repos.lst` to the target machine and:
|
||||||
```shell
|
```shell
|
||||||
$ git cloneall repos.lst
|
$ git cloneall repos.lst
|
||||||
```
|
```
|
||||||
|
- to update the repository list with new repos:
|
||||||
|
```shell
|
||||||
|
$ git listall -r repos.lst >> repos.lst
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
|
## Tips
|
||||||
|
- It is convenient to manage `repos.lst` as symlinks to a unified directory and
|
||||||
|
syncronize it between machines via someting like [syncthing](https://syncthing.net/)
|
||||||
|
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user