I am thoroughly confused by the git workflow and have managed to somehow lose my local project directory files after running a git rebase
command (after multiple failed attempts to merge). I suspect that it was rebased on the empty master branch, which is why now my local directory only has a readme
file, but I'm honestly not sure what's up.
So, now my project files are in the dev branch and the master branch is empty. How can I restore my project from the dev branch and then effectively merge the two such that my existing changes are populated within the master branch?
SO questions I have reviewed to troubleshoot this, but weren't ultimately that helpful...
UPDATE
One can clone a specific branch using the following git command:
git clone -b {branch_name} {url_for_repo}
See this SO question for details: