Skip to content

Commit d91b7a3

Browse files
committed
Added more notes on use of hub
1 parent fcc38f3 commit d91b7a3

File tree

1 file changed

+35
-1
lines changed

1 file changed

+35
-1
lines changed

github/use_hub.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,41 @@
11
# Use hub
22

3-
`hub` is a _replacement_ for _git_, well it is actually just a command line wrapper, which makes your work with GitHub easier.
3+
`hub` is a _replacement_ for _git_, well it is actually just a command line wrapper, which makes your work with **GitHub** easier.
4+
5+
> hub can be safely aliased as git, so you can type $ git <command> in the shell and have it expanded with hub features.
6+
7+
Prior to aliasing:
8+
9+
```bash
10+
$ hub --version
11+
git version 2.25.0
12+
hub version 2.14.1
13+
```
14+
15+
```bash
16+
$ git --version
17+
git version 2.25.0
18+
```
19+
20+
Aliasing:
21+
22+
```bash
23+
$ alias git="hub"
24+
$ alias | grep hub
25+
alias git='hub'
26+
```
27+
28+
After aliasing:
29+
30+
```bash
31+
$ hub --version
32+
git version 2.25.0
33+
hub version 2.14.1
34+
```
35+
36+
The alias should be put in your `.bash_profile` or equivalent.
437

538
## References
639

740
- [Hub website](https://hub.github.com/)
41+
- [Hub GitHub Repository](https://github.com/github/hub)

0 commit comments

Comments
 (0)