Warning updating the currently checked out branch Reallfe cam

Posted by / 03-May-2016 12:16

Warning updating the currently checked out branch

Here's the error I got: $ git push origin master [email protected]'s password: Counting objects: 9, done. Total 5 (delta 4), reused 0 (delta 0) remote: error: refusing to update checked out branch: refs/heads/master remote: error: By default, updating the current branch in a non-bare repository remote: error: is denied, because it will make the index and work tree inconsist ent remote: error: with what you pushed, and will require 'git reset --hard' to matc h remote: error: the work tree to HEAD.

remote : error : remote : error : To squelch this message and still keep the default behavior , Sept.

remote : error : ' Current Branch ' configuration variable to ' refuse ' .

remote: error: remote: error: You can set 'Current Branch' configuration variable to remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into remote: error: its current branch; however, this is not recommended unless you remote: error: arranged to update its work tree to match what you pushed in some remote: error: other way.

Here's what I've done so far: I successfully cloned my remote repo to a new directory on my local machine.Then I edited a file in working copy, committed it, and tried to push it to the remote repo. Writing objects: 100% (5/5), 456 bytes | 0 bytes/s, done.This is bad, because if you were pushing to a co-worker's machine, then when they go to commit or run a diff, things will go awry.In this case, I just didn't set up the repository correctly (it was the first one I'd done! I tried to create a new directory and clone on my machine , after the push to get this message Counting objects : 5 , done . Total 3 (delta 0 ) , reused 0 (delta 0 ) remote : error : Refusing to update checked out branch : refs / heads / master remote : error : By default , updating the current branch in a non -bare repository remote : error : is denied , because it will make the index and work tree inconsistent remote : error : with what you pushed , and will require ' git reset - hard ' to match remote : error : the work tree to HEAD .

warning updating the currently checked out branch-31warning updating the currently checked out branch-82warning updating the currently checked out branch-15

remote : error : remote : error : You can set ' Current Branch ' configuration variable to remote : error : 'ignore ' or ' warn ' in the remote repository to allow pushing into remote : error : its current branch ; However , this is not recommended unless you remote : error : arranged to update its work tree to match what you pushed in some remote : error : other way . [remote rejected ] master - master ( branch is currently checked out ) error : failed to push some refs to ' [email protected] :/ / var / test / . ' victhorweb @ victhorweb - Fastline - T4500 : ~ / birimolde / teste Novo Git / test $ anyone have any tips ?

One thought on “warning updating the currently checked out branch”