git-mv showing file deleted -


when run git-mv file1 file2, file moved file1 file2 i'd expect. sometimes, though, git status gives me 'odd' output.

when run git-mv f1 f2, git status:

# changes committed: #   (use "git reset head <file>..." unstage) # #   renamed:    f1 -> f2 

that's i'd expect. other times, though, after i've committed f2, get:

# changes committed: #   (use "git reset head <file>..." unstage)  # #   deleted:    f1 

this happens after i've committed new file. don't know why happens - seems occur @ random (because renamed: f1->f2 message, i'm expecting).

i'd know why messages saying i've deleted file after run git mv, , steps i'd have gone through produce - i've tried reproduce, , got renamed:..; 10 minutes ago got deleted:... on file i'd git-mved 10 minutes before that. it's confusing me greatly.

it sounds renamed f1 f2, committed addition of f2 , not removal of f1. can happen if use git mv f1 f2 type git commit f2, or can happen if type mv f1 f2 , git add .; git commit


Comments

Popular posts from this blog

jasper reports - Fixed header in Excel using JasperReports -

media player - Android: mediaplayer went away with unhandled events -

python - ('The SQL contains 0 parameter markers, but 50 parameters were supplied', 'HY000') or TypeError: 'tuple' object is not callable -