@@ -10,25 +10,40 @@ Once Git is installed, you need to configure it with your GitHub account informa
10
10
git config --global user.name " Your GitHub Username"
11
11
git config --global user.email
" [email protected] "
12
12
```
13
-
14
13
Replace "Your GitHub Username" and "
[email protected] " with your actual GitHub username and email.
15
14
16
15
3 . Generate Personal Access Token:
16
+ - Click on your avatar > click on setting > on your left-hand side, click on Personal Access Token > Click on Tokens (classic)
17
+ - Click generate new token and click on generate new token (classic)
18
+ - Copy the generated the generated token. (Note: copy and store the token in your notes.)
19
+ - Next when you clone a repo, system will prompt to key-in your username then user password. The password is the token which you have to key-in.
20
+
21
+ 4 . Clone the respective repository
22
+ ``` bash
23
+ git clone < repository-url>
24
+ cd < repository-directory>
25
+ ```
17
26
18
27
28
+ To check your configuration and see you set username and email
29
+ ``` bash
19
30
git config -l
20
-
31
+ ```
32
+ To store your token and you won't be asked next time
33
+ ``` bash
21
34
git config --global credential.helper cache
35
+ ```
36
+ To unset and forget your password
37
+ ``` bash
22
38
git config --global --unset credential.helper
23
-
39
+ ```
40
+ To unser the username and email
41
+ ``` bash
24
42
git config --global --unset-all user.name
25
43
git config --global --unset-all user.email
44
+ ```
26
45
27
46
28
- ``` bash
29
- git clone < repository-url>
30
- cd < repository-directory>
31
- ```
32
47
33
48
``` bash
34
49
git checkout -b < branch-name>
0 commit comments