I am not exactly sure how to phrase this question, as I am new to git.  One of my coworkers was working on a feature in a branch called "rotation."  I wanted to make use of the code he wrote, so I ran git checkout rotation.  The main difference between master and rotation branches is that the rotation branch has an extra subdirectory titled rotation/.  However, after running git checkout, this subdirectory did not show up in my working directory.  How do I get this subdirectory to show up?  I did some googling and found that git doesn't make changes to your working directory when you git checkout a branch if those changes would conflict with tracked changes in your working directory.  However, this is not the case here, at least for the rotation/ subdirectory, as it does not even exist in master.  So why doesn't this subdirectory show up?  How do I get it to?
Simply checking out the branch isn't enough to get remote changes to your machine. You must use git pull or git fetch.
Here is a useful diagram you can use as a reference.
Have you tried git pull origin rotation?
The form should be git pull <remote> <branchname>.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With