File tree Expand file tree Collapse file tree 1 file changed +35
-1
lines changed Expand file tree Collapse file tree 1 file changed +35
-1
lines changed Original file line number Diff line number Diff line change 1
1
# Use hub
2
2
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.
4
37
5
38
## References
6
39
7
40
- [ Hub website] ( https://hub.github.com/ )
41
+ - [ Hub GitHub Repository] ( https://github.com/github/hub )
You can’t perform that action at this time.
0 commit comments