# Git
Instalasi:
```
https://git-scm.com/downloads command
```
Inisialisasi:
```
git init
```
Untuk melihat status:
```
git status
```
Untuk menambahkan file untuk di-track oleh git:
```
git add [nama_file]
```
Untuk menyimpan perubahan yg di-track:
```
git commit -m “[commit message]”
```
Untuk melihat history commit:
```
git log
```
Untuk melihat branch:
```
git branch
```
Untuk membuat branch baru:
```
git checkout -b [branch name]
```
Untuk pindah ke sebuah branch:
```
git checkout [branch name]
```
Untuk melihat perubahan:
```
git diff
```
Cara membuat repository:
- [Github](https://docs.github.com/en/free-pro-team@latest/github/getting-started-with-github/create-a-repo)
- [Gitlab](https://docs.gitlab.com/ee/gitlab-basics/create-project.html)