Update GIT_ASSIGNMENT.md
This commit is contained in:
@ -55,3 +55,16 @@ No duplicate files → Everything is in one central repository.Clear history →
|
|||||||
13 gitignore
|
13 gitignore
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
14 why Rename isnt tracked
|
||||||
|
When renaming readme.md → README.md, Git did not show any change on my Windows system. Running git status showed a clean working directory.
|
||||||
|
|
||||||
|
Reason:
|
||||||
|
Git is case-sensitive, but Windows/macOS filesystems are case-insensitive. The OS treats readme.md and README.md as the same file, so Git does not detect the rename.
|
||||||
|
|
||||||
|
Solution:
|
||||||
|
Use Git’s force move to make the rename explicit.
|
||||||
|
|
||||||
|
git mv -f readme.md README.md
|
||||||
|
git commit -m "Rename readme.md to README.md"
|
||||||
|
git push origin main
|
Reference in New Issue
Block a user