1

How do I restore uncommitted files after running git stash, git pull, and then switching branches? I do not see any stashed changes when running git stash list in the new branch.

For context here is my command history:

 1976  git checkout HEAD main-backend/account/api/serializers.py
 1977  git reset HEAD main-backend/account/api/serializers.py
 1978  git checkout HEAD main-backend/account/api/serializers.py
 1979  git checkout HEAD main-backend/account/api/
 1980  git checkout HEAD main-backend/account/apii/
 1981  git checkout HEAD main-backend/account/api/git reset --hard --merge a5938af6
 1982  git reset --hard --merge a5938af6
 1983  git reset --hard a5938af6
 1984  git checkout HEAD^ main-backend/account/api/
 1985  cd main-backend/
 1986  ls
 1987  git checkout answer/api/
 1988  git checkout answer/api/views.py
 1989  cd ..
 1990  git checkout main-backend/answer/api/views.py
 1991  git checkout main-backend/answer/api/views
 1992  git checkout main-backend/answer/api/views.cpython-38.pyc
 1993  git checkout -f HEAD
 1994  git pull
 1995  clear
 1996  ls
 1997  git stash pop
 1998  git stash list
 1999  git branch
 2000  history | tail -25

veryreverie
  • 2,871
  • 2
  • 13
  • 26
Satyajit Barik
  • 145
  • 1
  • 1
  • 8

0 Answers0