> For the complete documentation index, see [llms.txt](https://asamarsal.gitbook.io/notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://asamarsal.gitbook.io/notes/personal-documentation/setting-git-di-cmd.md).

# Setting git di cmd

1. Jika anda belum menghubungkan akun git ke pc anda, maka ketik code ini di command prompt

```
git config --global user.name "usernameanda"
git config --global user.name "emailanda@gmail.com"
```

2. Jika anda ingin mengclone code yang memiliki izin access, maka anda harus mengcopy code ini

```
git clone https://usernameanda:secrettokenanda@gitlab.com/namausernamepemilikrepo/nama-project-yang-akan-diclone.git
```

Contoh code&#x20;

```
git clone https://asamarsal7:br2j5jhrbfwjbfwjh@gitlab.com/metafacebook/dummy-project-fakesnapchat.git
```

Anda akan menemukan access token disini

<figure><img src="/files/2laWlTEXTPmF2FmvNsMw" alt=""><figcaption></figcaption></figure>

3. Jika anda ingin menghapus data profile anda, ketikkan code ini

```
git config --global --unset user.name
git config --global --unset user.email
git config --global --unset credential.helper
```

atau anda bisa menggunakan code ini

```
git config --global --unset-all
```
