|
5 | 5 |
|
6 | 6 | #### For Termux
|
7 | 7 | ```bash
|
8 |
| -apt install openssh git -y |
| 8 | +pkg update && pkg install openssh git gh -y |
9 | 9 | ```
|
10 | 10 |
|
11 | 11 | #### For Linux
|
12 | 12 |
|
13 | 13 | ```bash
|
14 |
| -sudo apt install ssh git -y |
| 14 | +sudo apt update && sudo apt install ssh git gh -y |
15 | 15 | ```
|
16 | 16 |
|
17 | 17 | Configure your username with this command
|
@@ -66,7 +66,31 @@ you can choose a title whatever you want and the Key type must be set to "Authen
|
66 | 66 | Now click on "Add SSH key"
|
67 | 67 |
|
68 | 68 |
|
69 |
| -#### Congratulation you have configured your git cli! |
| 69 | +#### Configure gh cli that you don't can access the git' |
| 70 | + |
| 71 | +```bash |
| 72 | +gh auth login |
| 73 | +``` |
| 74 | + |
| 75 | +Now it prompt to chosse account like this |
| 76 | +<img src="assets/image_1.jpg"> |
| 77 | +choose Github.com |
| 78 | + |
| 79 | +<img src="assets/image_2.jpg"> |
| 80 | +Now choose HTTPS |
| 81 | +<img src="assets/image_3.jpg"> |
| 82 | +Login with a web browser |
| 83 | +<img src="assets/image_4.jpg"> |
| 84 | +Now you will see a code on your screen and a promt to open browser |
| 85 | +Select the browser in which you are logged in with that account |
| 86 | +<img src="assets/image_5.jpg"> |
| 87 | +Type the code shown on the terminal and click continue |
| 88 | +<img src="assets/image_6.jpg"> |
| 89 | +On next screen you will see something like this just click "Authorize Github" |
| 90 | +<img src="assets/image_7.jpg"> |
| 91 | +And at last you will see a screen like this |
| 92 | + |
| 93 | +#### Congratulation you have configured your git & gh cli! |
70 | 94 |
|
71 | 95 | ### Now its time to upload a project to you github repo
|
72 | 96 |
|
|
0 commit comments