Pessoal ,beleza?
Seguinte, eu fiz o processo do "Local" normalmente, tanto que quando eu coloco o comando $git remote -v , ele mostra na linha debaixo o local de fetch e push, tranquilamente.
Quando eu fiz o processo de "git push local master", ele deu a mensagem abaixo:
$ git push local master
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 2 threads
Compressing objects: 100% (8/8), done.
Writing objects: 100% (9/9), 983 bytes | 36.00 KiB/s, done.
Total 9 (delta 1), 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: is denied, because it will make the index and work tree inconsistent
remote: with what you pushed, and will require 'git reset --hard' to match
remote: the work tree to HEAD.
remote:
remote: You can set the 'receive.denyCurrentBranch' configuration variable
remote: to 'ignore' or 'warn' in the remote repository to allow pushing into
remote: its current branch; however, this is not recommended unless you
remote: arranged to update its work tree to match what you pushed in some
remote: other way.
remote:
remote: To squelch this message and still keep the default behaviour, set
remote: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
To C:/Users/Everton/PycharmProjects/servidor/ ! [remote rejected] master -> master (branch is currently checked out) error: failed to push some refs to 'C:/Users/Everton/PycharmProjects/servidor/'
Lembrando que estou fazendo esse processo dentro da Master da pasta do projeto:
Everton@DESKTOP-EQ2FM18 MINGW64 ~/PycharmProjects/gitclass (master)
$ pwd
/c/Users/Everton/PycharmProjects/gitclass