Skip to content

Commit a4800ff

Browse files
authored
Update README.md
1 parent a8ba1d2 commit a4800ff

File tree

1 file changed

+22
-7
lines changed

1 file changed

+22
-7
lines changed

README.md

+22-7
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,40 @@ Once Git is installed, you need to configure it with your GitHub account informa
1010
git config --global user.name "Your GitHub Username"
1111
git config --global user.email "[email protected]"
1212
```
13-
1413
Replace "Your GitHub Username" and "[email protected]" with your actual GitHub username and email.
1514

1615
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+
```
1726

1827

28+
To check your configuration and see you set username and email
29+
```bash
1930
git config -l
20-
31+
```
32+
To store your token and you won't be asked next time
33+
```bash
2134
git config --global credential.helper cache
35+
```
36+
To unset and forget your password
37+
```bash
2238
git config --global --unset credential.helper
23-
39+
```
40+
To unser the username and email
41+
```bash
2442
git config --global --unset-all user.name
2543
git config --global --unset-all user.email
44+
```
2645

2746

28-
```bash
29-
git clone <repository-url>
30-
cd <repository-directory>
31-
```
3247

3348
```bash
3449
git checkout -b <branch-name>

0 commit comments

Comments
 (0)