2021年3月28日星期日

"use "git pull" to merge the remote" but cannot go on getting solved

As a bit mistreat happened:

$ git remote -v;git status  origin  https://github.com/abdulbadii/find-list-search-filter-filesystem-thoroughly (fetch)  origin  https://github.com/abdulbadii/find-list-search-filter-filesystem-thoroughly (push)  On branch master  Your branch and 'origin/master' have diverged,  and have 1 and 2 different commits each, respectively.    (use "git pull" to merge the remote branch into yours)    Changes to be committed:    (use "git reset HEAD <file>..." to unstage)        deleted:    README.md  

logically do git pull but

$ git pull  error: Your local changes to the following files would be overwritten by merge:    README.md  

How then to solve it ?

https://stackoverflow.com/questions/66847615/use-git-pull-to-merge-the-remote-but-cannot-go-on-getting-solved March 29, 2021 at 09:05AM

没有评论:

发表评论