https://github.com/agilecreativity/git-remotes
Extract git URL recursively from a given directory.
https://github.com/agilecreativity/git-remotes
clojure-library command-line-tool git
Last synced: 5 months ago
JSON representation
Extract git URL recursively from a given directory.
- Host: GitHub
- URL: https://github.com/agilecreativity/git-remotes
- Owner: agilecreativity
- License: epl-1.0
- Created: 2018-07-17T22:15:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-04-21T03:48:50.000Z (almost 6 years ago)
- Last Synced: 2025-04-06T15:15:20.279Z (10 months ago)
- Topics: clojure-library, command-line-tool, git
- Language: Clojure
- Homepage: https://github.com/agilecreativity/git-remotes
- Size: 10.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# git-remotes
Extract git URL recursively from a given directory.
## Usage
```sh
git clone https://github.com/agilecreativity/git-remotes.git && cd git-remotes
# Generate the self-executed binary to `~/bin/git-remotes`
lein bin
# Confirm that we have the binary
ls -alt ~/bin/git-remotes
```
## Basic Usages `~/bin/git-remote -h`
```
Extract git URL recursively from a given directory
Usage: git-remotes [options]
-d, --base-dir DIR .
-o, --output-file FILE ./git-command.sh
-v, --verbose
-h, --help
Options:
--base-dir DIR path to the base directory, default to current directory.
--output-file FILE output file for command, default to 'git-command.sh'
--verbose print the output to the screen as well as output to file.
```
## Sample Usages
```shell
git-remotes -d ~/projects/typescript -o typescript-repos.sh
#Your output file : typescript-repos.sh
```
And the content of the `typescript-repos.sh` will be something like:
```text
git-remotes -d ~/projects/typescript -o typescript-repos.sh
#Your output file : typescript-repos.sh
```
And the content of the `typescript-repos.sh` will be something like:
```shell
#!/usr/bin/env sh
mkdir -p ~/projects/typescript/umbrella--thi-ng && cd ~/projects/typescript/umbrella--thi-ng && git clone git@github.com:thi-ng/umbrella.git ~/projects/typescript/umbrella--thi-ng 2> /dev/null
mkdir -p ~/projects/typescript/graphql-cli--graphcool && cd ~/projects/typescript/graphql-cli--graphcool && git clone git@github.com:graphcool/graphql-cli.git ~/projects/typescript/graphql-cli--graphcool 2> /dev/null
mkdir -p ~/projects/typescript/chromeless--graphcool && cd ~/projects/typescript/chromeless--graphcool && git clone git@github.com:graphcool/chromeless.git ~/projects/typescript/chromeless--graphcool 2> /dev/null
```
## License
Copyright © 2018 Burin Choomnuan
Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.