[git-users] Error on push repository
Hi people, I'm trying push a git repository and it's showing me a error: refusing to update checked out branch: refs/heads/master by default, updating the current branch in a non-bare repository is denied , because it will make the index and work tree inconsistent with what you pushed, and will require 'git reset --hard' to match I'm beginner in the git, and i'm having difficulty in this question. Can anybody help me? =) -- You received this message because you are subscribed to the Google Groups Git for human beings group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [git-users] Error on push repository
On 7 April 2015 at 15:38, michel martins michelmfrei...@gmail.com wrote: Hi people, I'm trying push a git repository and it's showing me a error: refusing to update checked out branch: refs/heads/master by default, updating the current branch in a non-bare repository is denied, because it will make the index and work tree inconsistent with what you pushed, and will require 'git reset --hard' to match I'm beginner in the git, and i'm having difficulty in this question. Can anybody help me? =) I'm guessing the repo you are pushing to isn't a bare repo, is it? In that case you can start with reading this: http://gitready.com/advanced/2009/02/01/push-to-only-bare-repositories.html /M -- Magnus Therning OpenPGP: 0xAB4DFBA4 email: mag...@therning.org jabber: mag...@therning.org twitter: magthe http://therning.org/magnus -- You received this message because you are subscribed to the Google Groups Git for human beings group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
Re: [git-users] Error on push repository
No, it's not. I solved the problem: git init --bare and the repo's name isn't 'origin'. But is this other question. Thanks, Magnus! -- You received this message because you are subscribed to the Google Groups Git for human beings group. To unsubscribe from this group and stop receiving emails from it, send an email to git-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[git-users] Error on PUSH
I have created a bare repository on a rackspace server. The repositories are stored under /home/git/. When I attempt a PUSH (my first) I get the following error message sridhar@sridhar-Aspire-5745:~/SASTRA-Sridhar/TNCA$ git push origin master g...@git.sastratechnologies.net's password: Counting objects: 183, done. Delta compression using up to 4 threads. Compressing objects: 100% (176/176), done. Writing objects: 100% (183/183), 309.58 KiB, done. Total 183 (delta 94), reused 0 (delta 0) *fatal: Unable to create temporary file: Permission denied* *error: unpack failed: index-pack abnormal exit *To g...@git.sastratechnologies.net:/home/git/TNCA.git ! [remote rejected] master - master (n/a (unpacker error)) *error: failed to push some refs to 'g...@git.sastratechnologies.net:/home/git/TNCA.git' *My bare repository structure on the rackspace server has the following permissions (the bare repository was copied onto the server using scp and while logged in as root) drwxrwxr-x 2 root root 4096 2012-06-18 10:48 branches -rw-r--r-- 1 root root 125 2012-06-21 09:54 config -rw-r--r-- 1 root root 73 2012-06-18 10:44 description -rw-r--r-- 1 root root 23 2012-06-18 10:48 HEAD drwxrwxr-x 2 root root 4096 2012-06-21 09:54 hooks drwxrwxr-x 2 root root 4096 2012-06-18 10:48 info drwxrwxr-x 128 root root 4096 2012-06-18 10:48 objects drwxrwxr-x 4 root root 4096 2012-06-18 10:48 refs I am not sure which directory GIT is complaining about. I am also unsure if changing the ownership from root to 'git' user will solve it. Would appreciate any help that would resolve this. Best regards, Sridhar -- You received this message because you are subscribed to the Google Groups Git for human beings group. To view this discussion on the web visit https://groups.google.com/d/msg/git-users/-/9Rp6S6ZF4_EJ. To post to this group, send email to git-users@googlegroups.com. To unsubscribe from this group, send email to git-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/git-users?hl=en.