Created
March 26, 2020 10:48
-
-
Save goFrendiAsgard/43f9bf29941c5f7ab8146183b2ef00d0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
git checkout -b light-and-darkness # buat branch baru (seperti membuat dunia parallel) | |
echo "tambah fitur light-and-darkness" >> catatan-sejarah.txt # lakukan perubahan | |
git add . -A | |
git commit -m 'tambah fitur light-and-darkness' # lakukan commit | |
git push -u origin light-and-darkness # simpan branch ke github | |
git log | |
cat catatan-sejarah.txt # di sini file catatan-sejarah berisi 2 baris text | |
git checkout master # kembali ke dunia parallel awal | |
git log | |
cat catatan-sejarah.txt # di sini catatan-sejarah.txt cuma berisi 1 baris. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment