Today I am configuring the remote GIT repository over the shared LAN then some issues I found solving those for this way.
- remote: error: refusing to update checked out branch: refs/heads/master
- Needs a bare repository Solve it: git config --bool core.bare true
- Then after try to update it I can't, so is necessary to un bare the current remote repository
- git config --unset core.bare
- So at the end was preferable create a new branch and remote one recongnized it with no throubles
Delete remote branch from local repository
- git push --delete origin <remote branch name>
Delete local branch in current repository
- git branch -D <local branch name>
- -D means you're really sure to delete it