wael mrabet
wael mrabet

Reputation: 109

git pull removed my local changed files without conflicts

actually I am asking if git pull delete local commited changes when the same files in remote repository has been removed by the latest other user's commit ?

Upvotes: 1

Views: 923

Answers (1)

phd
phd

Reputation: 94932

Yes, git pull will remove files that have been deleted in another repository. So backup the files before pulling.

Save them for longer period if you think you need them. Because git checkout will also remove the files if you switch to a branch where these files were removed.

Upvotes: 1

Related Questions