Skip to content

Instantly share code, notes, and snippets.

@goFrendiAsgard
Created March 26, 2020 10:48
Show Gist options
  • Save goFrendiAsgard/43f9bf29941c5f7ab8146183b2ef00d0 to your computer and use it in GitHub Desktop.
Save goFrendiAsgard/43f9bf29941c5f7ab8146183b2ef00d0 to your computer and use it in GitHub Desktop.
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