Melacak Perubahan Sebuah File Dengan Git
- Categories:
- git
Untuk melakukan list seluruh commit pada sebuah file
git log --follow yourfile
Perintah dibawah ini tidak hanya list, tetapi membuka juga membuka diff yang pernah terjadi di dalam file, tetapi tidak melakukan pelacakan perubahan pada file sebelum diubah namanya.
git log -p yourfile
List commit dan membuka seluruh perubahan yang pernah terjadi pada suatu file termasuk sebelum rename dan setelah rename.
git log --follow -p yourfile
# jika punya file dengan nama '--yourfile.txt'
git log --follow -p -- --yourfile.txt
- Tags:
- #git
Recent Posts
AWS Secrets Manager
Explanation about AWS Secrets Manager with example code.
Envelope Encryption
Envelope encryption is the practice of encrypting plaintext data with a data key, and then encrypting the data key under another key.
Tutorial - "su username vs su - username" - A Security Perspective
The main difference between `su username` and `su - username` lies in the environment variables that are loaded when switching to the specified user.
Subdomain Hijacking
My dormant subdomain was recently hijacked, redirecting it to a online gamble registration page.
C# DbContext ServiceLifeTime
my note about C Sharp ServiceLifeTime