Tampilkan postingan dengan label git. Tampilkan semua postingan
Tampilkan postingan dengan label git. Tampilkan semua postingan

29 Agustus 2021

Sunday is the BACKUP day!

Sunday is the backup day. 


Sunday is the backup day. Backup hardware comes and goes. My current oldest backup disk is a Seagate 250 GB Portable External Drive. It is so old that I can not remember when I have purchased it. Another old one is a 500 GB disk from January 2014. The 500GB disk was inside Lenovo Edge 135, which a replaced with an SSD one.

I use "rsync" for backup. I backup git (bare) repositories because they are compact and faster to backup.



DISCLAIMER


This is HOW Me Do IT! Grrr... this blog memo is mainly written for OWN PURPOSES. This post is based on "Google There, Google Here, Try That, Try This, Then Ask". Whether this is PLAGIARY or RESEARCH, there has never been a claim that this is an original work, nor is it necessarily the best solution, and not for Scopus consumption :). Please provide feedback, especially if you have alternative explanations. Hopefully, this note will be helpful in the future when you have forgotten how to solve this trivia problem.


DISKLAIMER


INIlah yang KUlakukan! Grrr... memo blog ini terutama ditulis untuk KEPERLUAN SENDIRI. Tulisan ini berbasis "Google Sana, Google Sini, Coba Itu, Coba Ini, Lalu Tanya-tanyi". Entah ini PLAGIAT, entah ini RISET, yang jelas tidak pernah ada klaim bahwa ini merupakan karya asli, serta belum tentu pula merupakan solusi terbaik, serta bukan untuk konsumsi Scopus :). Mohon kiranya memberikan tanggapan, terutama jika memiliki solusi alternatif. Semoga catatan ini akan bermanfaat di masa mendatang, saat sudah lupa cara menyelesaikan masalah trivia ini.

Qapla!

02 Agustus 2021

GitHub Page From Scratch

Sepanjang akhir pekan lalu, saya mengerjakan "GitHub Page From Scratch".

Pengerjaan ini betul-betul dari nol (="From Scratch"), walaupun menggunakan repo GitHub bekas yang di daur ulang. Laman web disusun dengan mempelajari link-link berikut ini:

Tujuan pembuatan GitHub Page From Scratch ini ialah untuk membuat sebuah template GitHub Page "ringan" pengganti https://template.vlsm.org/.

Yang dimaksud dengan ringan ialah:
  1. mudah ditelusuri dan 
  2. mudah dimodifikasi.
Selama ini --- problem yang saya alami ialah --- template (jadi) yang tersedia sulit sekali atau membutuhkan waktu penelusuran yang lama. Maklum, saya ini BUKAN web developer!

Semoga bermanfaat.



DISCLAIMER


This is HOW Me Do IT! Grrr... this blog memo is mainly written for OWN PURPOSES. This post is based on "Google There, Google Here, Try That, Try This, Then Ask". Whether this is PLAGIARY or RESEARCH, there has never been a claim that this is an original work, nor is it necessarily the best solution, and not for Scopus consumption :). Please provide feedback, especially if you have alternative explanations. Hopefully, this note will be helpful in the future when you have forgotten how to solve this trivia problem.


DISKLAIMER


INIlah yang KUlakukan! Grrr... memo blog ini terutama ditulis untuk KEPERLUAN SENDIRI. Tulisan ini berbasis "Google Sana, Google Sini, Coba Itu, Coba Ini, Lalu Tanya-tanyi". Entah ini PLAGIAT, entah ini RISET, yang jelas tidak pernah ada klaim bahwa ini merupakan karya asli, serta belum tentu pula merupakan solusi terbaik, serta bukan untuk konsumsi Scopus :). Mohon kiranya memberikan tanggapan, terutama jika memiliki solusi alternatif. Semoga catatan ini akan bermanfaat di masa mendatang, saat sudah lupa cara menyelesaikan masalah trivia ini.

Qapla!

09 Juni 2020

Git/GitHub: Kondisi Balapan Saat COMMIT

Kondisi balapan (race-condition) pada git/github dapat terjadi jika ada lebih dari satu pihak yang mengubah berkas yang sama.

Misalnya, Cicak Bin Kadal (CBKadal) dan Dummy Surimmy (Dummy) sama-sama ingin mengisi absen, "HADIR".

CBKadal dan Dummy mengisi ABSEN bersamaan.


Lalu mereka sama-sama "COMMIT".


Pada sistem berbasis WEB (GitHub), hanya yang duluan yang akan berhasil commit. Yang belakangan akan mendapatkan pesan sebagai berikut:

Peringatan bahwa ada yang COMMIT duluan!

Kalau demikian JIKA ANDA MEMAKSA COMMIT, maka akan menimpa COMMIT sebelumnya. Seharusnya anda melakukan edit ulang terlebih dahulu sebelum commit. 

Pada sistem berbasis Command Line Interface (CLI), anda tetap dapat COMMIT, namun akan mengalami kesulitan pada saat push.

Berikut contoh di "BADAK":

CBKadal dan Dummy dapat sama-sama COMMIT

CBKadal dan Dummy sama-sama akan dapat commit pada repositori lokal. Namun, hanya push yang duluan yang akan sukses.

Yang duluan, "git push" akan SUKSES!


Gagal "git push"


Seperti yang tertulis pada pesan "git", dianjurkan "git pull" terlebih dahulu sebelum "git push".


DISCLAIMER


This is HOW Me Do IT! Grrr... this blog memo is mainly written for OWN PURPOSES. This post is based on "Google Here, There, and Everywhere". Whether this is PLAGIARY or RESEARCH, there has never been a claim that this is an original work, nor is it necessarily the best solution, and not for Scopus consumption :). Please provide feedback, especially if you have alternative explanations. Hopefully, this note will be helpful in the future when you have forgotten how to solve this trivia problem.


DISKLAIMER


INIlah yang KUlakukan! Grrr... memo blog ini terutama ditulis untuk KEPERLUAN SENDIRI. Tulisan ini berbasis "Google Sana, Google Sini, Coba Itu, Coba Ini, Lalu Tanya-tanyi". Entah ini PLAGIAT, entah ini RISET, yang jelas tidak pernah ada klaim bahwa ini merupakan karya asli, serta belum tentu pula merupakan solusi terbaik, serta bukan untuk konsumsi Scopus :). Mohon kiranya memberikan tanggapan, terutama jika memiliki solusi alternatif. Semoga catatan ini akan bermanfaat di masa mendatang, saat sudah lupa cara menyelesaikan masalah trivia ini.

This is the Way!

09 Mei 2020

To Practice Git without GitHub

The following script is useful if you want to practice Git without GitHub. Here, GitHub's replacement will be folder "remoteDir/," while the working folder will be "workingDir/." 

Let's get started!

 

# Uncomment to DELETE the old folders 
# rm -rf remoteDir/ workingDir/ ;
git init workingDir/;
git init remoteDir/ --bare;
cd workingDir/;
git commit -am "Init" --allow-empty;
git remote add origin ../remoteDir/;
git push --set-upstream origin master;
git branch -v;
git remote -v;
git status;


Let's give it a spin!

 

touch file1.txt;
git status --short;
git add file1.txt;
git status --short;
git commit -m file1.txt;
git status;
git push;
git status;


DISCLAIMER


This is HOW Me Do IT! Grrr... this blog memo is mainly written for OWN PURPOSES. This post is based on "Google Here, There, and Everywhere". Whether this is PLAGIARY or RESEARCH, there has never been a claim that this is an original work, nor is it necessarily the best solution, and not for Scopus consumption :). Please provide feedback, especially if you have alternative explanations. Hopefully, this note will be helpful in the future when you have forgotten how to solve this trivia problem.


DISKLAIMER


INIlah yang KUlakukan! Grrr... memo blog ini terutama ditulis untuk KEPERLUAN SENDIRI. Tulisan ini berbasis "Google Sana, Google Sini, Coba Itu, Coba Ini, Lalu Tanya-tanyi". Entah ini PLAGIAT, entah ini RISET, yang jelas tidak pernah ada klaim bahwa ini merupakan karya asli, serta belum tentu pula merupakan solusi terbaik, serta bukan untuk konsumsi Scopus :). Mohon kiranya memberikan tanggapan, terutama jika memiliki solusi alternatif. Semoga catatan ini akan bermanfaat di masa mendatang, saat sudah lupa cara menyelesaikan masalah trivia ini.

This is the Way!

10 November 2009

GIT


Git is a free & open source, distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
 

URL




DISCLAIMER


This is HOW Me Do IT! Grrr... this blog memo is mainly written for OWN PURPOSES. This post is based on "Google Here, There, and Everywhere". Whether this is PLAGIARY or RESEARCH, there has never been a claim that this is an original work, nor is it necessarily the best solution, and not for Scopus consumption :). Please provide feedback, especially if you have alternative explanations. Hopefully, this note will be helpful in the future when you have forgotten how to solve this trivia problem.


DISKLAIMER


INIlah yang KUlakukan! Grrr... memo blog ini terutama ditulis untuk KEPERLUAN SENDIRI. Tulisan ini berbasis "Google Sana, Google Sini, Coba Itu, Coba Ini, Lalu Tanya-tanyi". Entah ini PLAGIAT, entah ini RISET, yang jelas tidak pernah ada klaim bahwa ini merupakan karya asli, serta belum tentu pula merupakan solusi terbaik, serta bukan untuk konsumsi Scopus :). Mohon kiranya memberikan tanggapan, terutama jika memiliki solusi alternatif. Semoga catatan ini akan bermanfaat di masa mendatang, saat sudah lupa cara menyelesaikan masalah trivia ini.

This is the Way!