Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
maimul authored Nov 21, 2023
1 parent a8ba1d2 commit a4800ff
Showing 1 changed file with 22 additions and 7 deletions.
29 changes: 22 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,40 @@ Once Git is installed, you need to configure it with your GitHub account informa
git config --global user.name "Your GitHub Username"
git config --global user.email "[email protected]"
```

Replace "Your GitHub Username" and "[email protected]" with your actual GitHub username and email.

3. Generate Personal Access Token:
- Click on your avatar > click on setting > on your left-hand side, click on Personal Access Token > Click on Tokens (classic)
- Click generate new token and click on generate new token (classic)
- Copy the generated the generated token. (Note: copy and store the token in your notes.)
- 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.

4. Clone the respective repository
```bash
git clone <repository-url>
cd <repository-directory>
```


To check your configuration and see you set username and email
```bash
git config -l

```
To store your token and you won't be asked next time
```bash
git config --global credential.helper cache
```
To unset and forget your password
```bash
git config --global --unset credential.helper

```
To unser the username and email
```bash
git config --global --unset-all user.name
git config --global --unset-all user.email
```


```bash
git clone <repository-url>
cd <repository-directory>
```

```bash
git checkout -b <branch-name>
Expand Down

0 comments on commit a4800ff

Please sign in to comment.