git pull error - cannot pull existing files

 

 

Error status

Your local changes to the following files would be overwritten by merge

PS D:\repo\myApp> git status
On branch main
Your branch is behind 'origin/main' by 2 commits, and can be fast-forwarded.
(use "git pull" to update your local branch)
Untracked files:
(use "git add <file>..." to include in what will be committed)
requirements231020.txt

 

 

Solve1

git stash
git pull
# or git pull origin main
git stash pop

 

 

Solve2

git add .
git pull

 

 

 

 

 

_

반응형