version control - Git commits lost code changes. Possible scenarios please? -
i have met weird situation. of code commits lost.
three of working on same repository. change 1: working on branch called a, while other 2 working on master branch along. did
git checkout master git pull origin master git merge looks passed. no error. have been working on master since. did pulls , push. other 2 colleagues had been working on master time. suddenly, after pull, found file committed code reversed old time before merge... checked through commits merge present. there few commits, none of them deleted code. weird...
change 2. added code , did commit. continued working on master branch. added small feature it, @ end of day, same thing happened. feature code gone again, , no 1 had deleted code diff previous on stash tool on file...
what reason cause these, , how should fix , avoid in future please? thank you.
Comments
Post a Comment