Jawaban excercise git
-
Step untuk push ke github:
git init .
git remote add [name-origin] [link-https]
git add [nama file]
git commit -m "[Message]"
git push -u [name-origin] [name-branch] -
Jika menggunakan git Reset, commit terakhir akan hilang/terhapus. Sedangkan jika menggunakan git revert commit terakhirnya tetap ada, hanya mundur saja.
-
Git adalah version control system yang mencatat setiap perubahan pada File (termasuk code yang kita buat) pada suatu proyek baik dikerjakan secara individu maupun tim. Sedangkan Github adalah penyedia service untuk version control system.