0

I am trying to pull the code from a remote branch to a local folder on my machine. I created a git repo and am now on the branch that I want to be get code from.

AAA@AAA-VirtualBox:~/Downloads/BBB/CCC$ git branch
  dev-master
* feature/multi-pouch_2021

My folder is completely empty but when I run a git pull it says already up to date so I am not sure what I am doing wrong!

AAA@AAA-VirtualBox:~/Downloads/BBB/CCC$ git pull
Already up to date.

I have also tried git pull origin feature/multi-pouch_2021 (the branch I want) but nothing populates my folder with the files.

palacetrading
  • 71
  • 1
  • 11

1 Answers1

0

You can try first a git restore (assuming Git 2.23+)

cd /path/to/local/repository
git restore -- .

Note the -- (to separate options from arguments) and '.' for restoring everything from current path.

Then see if the folder is still empty.

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250