-
Membuat Repository Baru
git init -
Melihat status working folder
git status -
Menambahkan perubahan ke staging area
git add nama-file // untuk menambahkan file tertentugit add . // untuk menambahkan semua file. -
Menyimpan perubahan ke local repo
git commit -m "pesan/keterangan commit" -
Mendaftarkan remote repo
git remote add nama-remote url-remote git remote add github https://github.com/izadalab/belajar-git.git -
Mengupload repo lokal ke remote
`git push -u nama-remote nama-branch` -
Mendownload/mengambil perubahan dari remote ke working folder
`git pull nama-remote nama-branch` -
Menghapus perubahan di staging
git reset -
Menghapus perubahan di staging dan working folder
git reset --hard -
Melihat daftar branch
git branch -all -
Membuat branch baru
git branch nama-branch -
Pindah ke branch tertentu
git checkout nama-branch -
Merge branch tertentu ke master
git checkout master git merge nama-branch -
Menghapus branch tertentu di lokal
git branch -d nama-branch -
Menghapus branch tertentu di remote
git push nama-remote :nama-branch
-
Notifications
You must be signed in to change notification settings - Fork 0
izadalab/belajar-git
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published