This commit adds a `--user` flag to the `collect git` command, allowing it to fetch all public repositories for a given GitHub user or organization. - The `collect git` command was modified to accept a `--user` flag. - The previous `all` command's functionality has been integrated into the `collect git` command. - The documentation and examples have been updated to reflect the new flag.
9 lines
358 B
Bash
9 lines
358 B
Bash
#!/bin/bash
|
|
|
|
# Example of how to use the 'collect git' command.
|
|
|
|
# This will clone a single git repository and store it in a DataNode.
|
|
borg collect git --uri https://github.com/torvalds/linux.git --output linux.dat
|
|
|
|
# This will clone all public repositories for a user and store them in a directory.
|
|
borg collect git --user torvalds --output /tmp/borg-repos
|