You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DO NOT use git mv [original] [target name]
as this will add the rename to the cached files to be commited.
Us mv instead. or manually change the file name.
I learned to use git mv to rename or move files and this tripped me up in this level so much. i was looking into the sourcecode for any errors. https://github.com/git-learning-game/oh-my-git/blob/main/levels/index/steps#L20
is the exact spot that confused me, what where they checking? well, changes, that are NOT yet been cached or commited:
$ git diff --name-only
returns 0, nada, if you add them, and git mv emediatly adds them to the cach and commits the changes when you do a single commit (like git add broken_bottle, it ALSO adds the other renamed files if u use git mv)
TLDR: use MV, not GIT MV like i did
The text was updated successfully, but these errors were encountered:
DO NOT use git mv [original] [target name]
as this will add the rename to the cached files to be commited.
Us mv instead. or manually change the file name.
I learned to use git mv to rename or move files and this tripped me up in this level so much. i was looking into the sourcecode for any errors.
https://github.com/git-learning-game/oh-my-git/blob/main/levels/index/steps#L20
is the exact spot that confused me, what where they checking? well, changes, that are NOT yet been cached or commited:
$ git diff --name-only
returns 0, nada, if you add them, and git mv emediatly adds them to the cach and commits the changes when you do a single commit (like git add broken_bottle, it ALSO adds the other renamed files if u use git mv)
TLDR:
use MV, not GIT MV like i did
The text was updated successfully, but these errors were encountered: