I have an Angular project that is stored locally on my machine. I have added a remote for this directory, C:\Users\myName\homeRedesign
, on a folder I created on a network drive, P:\homeRedesign
.
I tried running git init
on the destination folder but received this issue:
remote: error: refusing to update checked out branch: refs/heads/master
remote: error: By default, updating the current branch in a non-bare repository is denied...
After this, I tried running git init --bare
. I can now run git push
without issues but when I look in the folder, I only see files created by Git. I have confirmed I'm on master branch (the only branch) by running git branch
.
Why can't I see my project's folders and files?