[git-users] push error

2012-08-29 Thread ashu
What can be the reason of this error ? ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ sudo git init [sudo] password for ashu: Initialized empty Git repository in /home/ashu/Documents/git-dir/git1/.git/ ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ git commit -m first commit fatal: Unable to

Re: [git-users] push error

2012-08-29 Thread Michael Wang
the git commit has warned you nothing to commit (create/copy files and use git add to track) and if you try git log, you will get someting like: fatal: bad default revision 'HEAD' git cannot commit an empty tree, so you should add at least one file for git to track, try the following commands:

Re: [git-users] push error

2012-08-29 Thread ashutosh verma
It is still giving the same error: ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ touch README ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ echo 'Hello world' README ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ sudo git add README [sudo] password for ashu:

Re: [git-users] push error

2012-08-29 Thread Michael Wang
No, this time is another error fatal: remote origin already exists. you have already add that remote. No need and you cannot add it again. just run *sudo git push -u origin master * 2012/8/29 ashutosh verma ashutove...@gmail.com It is still giving the same error:

Re: [git-users] push error

2012-08-29 Thread Ryan Hodson
I believe the 403 error is a GitHub permissions issue. I don't think you can push over https without some special setup. The easy solution is to use SSH instead. Try changing your remote to: ssh:// github.com/ashutoshverma/drunken-ironman.git On Aug 29, 2012 4:11 AM, Michael Wang

Re: [git-users] push error

2012-08-29 Thread Martin Møller Skarbiniks Pedersen
On 29 August 2012 10:43, ashu ashutove...@gmail.com wrote: What can be the reason of this error ? ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ sudo git init [sudo] password for ashu: Initialized empty Git repository in /home/ashu/Documents/git-dir/git1/.git/

Re: [git-users] push error

2012-08-29 Thread Konstantin Khomoutov
On Wed, 29 Aug 2012 04:15:57 -0500 Ryan Hodson hodson.r...@gmail.com wrote: I believe the 403 error is a GitHub permissions issue. I don't think you can push over https without some special setup. The easy solution is to use SSH instead. [...] I beleive there's no any way to push over HTTPS

Re: [git-users] push error

2012-08-29 Thread Konstantin Khomoutov
On Wed, 29 Aug 2012 01:43:22 -0700 (PDT) ashu ashutove...@gmail.com wrote: What can be the reason of this error ? ashu@ashu-G41MT-S2P:~/Documents/git-dir/git1$ sudo git init [sudo] password for ashu: Initialized empty Git repository in /home/ashu/Documents/git-dir/git1/.git/

Re: [git-users] push error

2012-08-29 Thread Thomas Ferris Nicolaisen
On Wednesday, August 29, 2012 2:00:42 PM UTC+2, Konstantin Khomoutov wrote: On Wed, 29 Aug 2012 04:15:57 -0500 Ryan Hodson hodso...@gmail.com javascript: wrote: I believe the 403 error is a GitHub permissions issue. I don't think you can push over https without some special setup. The