[cs631apue] Error in git push

Sadia Akhter sakhter at stevens.edu
Fri Nov 14 16:26:36 EST 2014


I've tried the following commands. I've created a directory "src", copied some files from hw3 into this directory, and then tried git add, git commit and git push. I've checked the status before doing git push. It seems that only the git push does not work.

I've google the error and they are saying its a permission problem. I've no idea how to fix it. 

I'd appreciate any help.

Thanks,
Sadia


sakhter at avalon:~/cs631/2014-Fall/final-project/slytherin$ ls
back  README  src  sws
sakhter at avalon:~/cs631/2014-Fall/final-project/slytherin$ git add src
sakhter at avalon:~/cs631/2014-Fall/final-project/slytherin$ git status
# On branch master
# Changes to be committed:
#   (use "git reset HEAD <file>..." to unstage)
#
#	new file:   src/Makefile
#	new file:   src/cgi.c
#	new file:   src/cgi.h
#	new file:   src/main.c
#	new file:   src/net.c
#	new file:   src/net.h
#	new file:   src/request.c
#	new file:   src/request.h
#	new file:   src/response.c
#	new file:   src/response.h
#
sakhter at avalon:~/cs631/2014-Fall/final-project/slytherin$ git commit -m "adding sadia's code to src dir"
[master 5434fb9] adding sadia's code to src dir
 10 files changed, 425 insertions(+)
 create mode 100644 src/Makefile
 create mode 100644 src/cgi.c
 create mode 100644 src/cgi.h
 create mode 100644 src/main.c
 create mode 100644 src/net.c
 create mode 100644 src/net.h
 create mode 100644 src/request.c
 create mode 100644 src/request.h
 create mode 100644 src/response.c
 create mode 100644 src/response.h
sakhter at avalon:~/cs631/2014-Fall/final-project/slytherin$ git status
# On branch master
# Your branch is ahead of 'origin/master' by 1 commit.
#
nothing to commit (working directory clean)
sakhter at avalon:~/cs631/2014-Fall/final-project/slytherin$ git push 
Warning: the ECDSA host key for 'linux-lab.cs.stevens.edu' differs from the key for the IP address '155.246.89.100'
Offending key for IP in /home/sakhter/.ssh/known_hosts:4
Matching host key in /home/sakhter/.ssh/known_hosts:9
Are you sure you want to continue connecting (yes/no)? yes
Password: 
Counting objects: 14, done.
Delta compression using up to 6 threads.
Compressing objects: 100% (13/13), done.
Writing objects: 100% (13/13), 4.03 KiB, done.
Total 13 (delta 0), reused 0 (delta 0)
error: insufficient permission for adding an object to repository database ./objects

fatal: failed to write object
error: unpack failed: unpack-objects abnormal exit
To sakhter at linux-lab.cs.stevens.edu:~jschauma/apue/slytherin
 ! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'sakhter at linux-lab.cs.stevens.edu:~jschauma/apue/slytherin'
sakhter at avalon:~/cs631/2014-Fall/final-project/slytherin$ 



On Nov 14, 2014, at 4:07 PM, Boxiang Dong <bdong at stevens.edu> wrote:

> Hi, Sadia,
> 
> Have you used "git status" to check if you have already added the new files to the current index?
> 
> Thanks,
> 
> Boxiang 
> 
> On Fri, Nov 14, 2014 at 2:44 PM, Sadia Akhter <sakhter at stevens.edu> wrote:
> Hello,
> 
> when I'm trying to add some files to git repo, the "git push" command is giving me the following error. The files are not added to the git. Did any of you get the same error? Can you help me to resolve it? It looks like a permission error.
> 
> Thanks,
> Sadia
> 
> 
> sakhter at avatar:~/cs631/2014-Fall/final-project/slytherin$ git push
> Warning: the ECDSA host key for 'linux-lab.cs.stevens.edu' differs from the key for the IP address '155.246.89.100'
> Offending key for IP in /home/sakhter/.ssh/known_hosts:4
> Matching host key in /home/sakhter/.ssh/known_hosts:9
> Are you sure you want to continue connecting (yes/no)? yes
> Password: 
> Counting objects: 14, done.
> Delta compression using up to 6 threads.
> Compressing objects: 100% (13/13), done.
> Writing objects: 100% (13/13), 4.02 KiB, done.
> Total 13 (delta 0), reused 0 (delta 0)
> error: insufficient permission for adding an object to repository database ./objects
> 
> fatal: failed to write object
> error: unpack failed: unpack-objects abnormal exit
> To sakhter at linux-lab.cs.stevens.edu:~jschauma/apue/slytherin
> 
> _______________________________________________
> cs631apue mailing list
> cs631apue at lists.stevens.edu
> https://lists.stevens.edu/mailman/listinfo/cs631apue
> 
> 
> 
> 
> -- 
> Boxiang Dong
> Ph.D Candidate
> Department of Computer Science
> Stevens Institute of Technology
> Hoboken, NJ, USA

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.stevens.edu/pipermail/cs631apue/attachments/20141114/01c09d18/attachment-0001.html>


More information about the cs631apue mailing list