Skip to content

Instantly share code, notes, and snippets.

@goFrendiAsgard
Created March 26, 2020 10:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save goFrendiAsgard/0ad06e51b05afd5294d5f7bd65baa7a1 to your computer and use it in GitHub Desktop.
Save goFrendiAsgard/0ad06e51b05afd5294d5f7bd65baa7a1 to your computer and use it in GitHub Desktop.
git checkout -b darwin-enchancement # buat branch baru (seperti membuat dunia parallel)
echo "tambah fitur ldarwin-enchancement" >> catatan-sejarah.txt # lakukan perubahan
git add . -A
git commit -m 'tambah fitur ldarwin-enchancement' # lakukan commit
git push -u origin darwin-enchancement # 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 "light-and-darkness"
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