Compare commits
6 Commits
feature/le
...
6be5cb4f32
| Author | SHA1 | Date | |
|---|---|---|---|
| 6be5cb4f32 | |||
| df394da8e2 | |||
| 7e2c7a9396 | |||
| e2914f3b70 | |||
| d0c1a1730e | |||
| 6f6d069366 |
14
README.md
Normal file
14
README.md
Normal file
@@ -0,0 +1,14 @@
|
||||
## why Git is not tracking this case-only rename?
|
||||
|
||||
Windows/macOS filesystems are case-insensitive they treat both names as the same file.So when you rename only by case, the OS reports no change.
|
||||
|
||||
## Provide the correct steps to make Git recognize and commit the rename:
|
||||
force Rename command : git mv -f readme.md Readme.md
|
||||
|
||||
## Explain the underlying reason why this happens (hint: think about how Git interacts with different operating systems and filesystems).
|
||||
|
||||
1. Git was designed for Linux, where filesystems are case-sensitive.
|
||||
2. Windows/macOS filesystems are case-insensitive they treat both names as the same file.So when you rename only by case, the OS reports no change.
|
||||
|
||||
|
||||
|
||||
9
assignment.txt
Normal file
9
assignment.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
git log -- <filename> :
|
||||
shows the commmit message for a specific file.
|
||||
|
||||
git log -p --<filename> :
|
||||
shows line by line changes for each commmit in a specific file
|
||||
|
||||
git log --oneline --<filename> :
|
||||
shows commit history in short form for the specific file
|
||||
|
||||
Reference in New Issue
Block a user