GIT

Today I am configuring the remote GIT repository over the shared LAN then some issues I found solving those for this way.


  1. remote: error: refusing to update checked out branch: refs/heads/master
    1. Needs a bare repository Solve it: git config --bool core.bare true
  2. Then after try to update it I can't, so is necessary to un bare the current remote repository
    1. git config --unset core.bare
  3. 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

No comments:

Post a Comment

We appreciate meet you and know your opinion!

GIT

Today I am configuring the remote GIT repository over the shared LAN then some issues I found solving those for this way. remote: erro...