@@ -4,21 +4,58 @@ git-get is an opinionated git command that helps you keep your code folder in or
44
55git-get is a simple wrapper for ` git clone ` that clones your repository into a standard location so that you always know where your code is.
66
7- git-get will place you inside your new folder when you're done because it saves typing ` cd <the thing you just typed already> ` :)
8-
97## Installing
108
11- All you get to do is to put ` git-get ` somewhere in your path :)
9+ Just put ` git-get ` somewhere in your path :)
10+
11+ ## Usage
12+
13+ ```
14+ git get [--print-path] <repository> [<args>]
15+ ```
16+
17+ ### Arguments
18+
19+ - ` <repository> ` - The repository URL to clone (required)
20+ - ` [<args>] ` - Additional arguments passed directly to ` git clone `
21+
22+ ### Options
23+
24+ - ` --print-path ` - Print the full path where the repository would be cloned and exit without cloning
25+ - ` -h, --help ` - Show help message and exit
1226
1327## Examples
1428
29+ ### Basic Usage
30+
1531``` shell
1632git get https://github.com/stilvoid/git-get
17- Cloning into ' /home/steve/code/github.com/stilvoid/git-get' ...
33+ Cloning into ' /home/bob/code/github.com/stilvoid/git-get' ...
34+ Successfully cloned to: /home/bob/code/github.com/stilvoid/git-get
1835```
1936
2037git-get uses the repository URL to figure out where to place your checked out copy.
2138
39+ ### Supported URL Formats
40+
41+ git-get works with various repository URL formats:
42+
43+ ``` shell
44+ # HTTPS URLs
45+ git get https://github.com/stilvoid/git-get.git
46+ # → ~/code/github.com/stilvoid/git-get
47+
48+ # SSH URLs
49+ git get
[email protected] :stilvoid/git-get.git
50+ # → ~/code/github.com/stilvoid/git-get
51+
52+ # Git protocol URLs
53+ git get git://github.com/stilvoid/git-get.git
54+ # → ~/code/github.com/stilvoid/git-get
55+ ```
56+
57+ ### Configuration
58+
2259By default, git-get places all repositories under ` ~/code ` but you can change that by setting get.location:
2360
2461``` shell
0 commit comments