<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">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.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">I've google the error and they are saying its a permission problem. I've no idea how to fix it.&nbsp;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">I'd appreciate any help.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Thanks,</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Sadia</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">sakhter@avalon:~/cs631/2014-Fall/final-project/slytherin$ ls</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"><span style="color: #5e34ff"><b>back</b></span>&nbsp; README&nbsp; <span style="color: #5e34ff"><b>src</b></span>&nbsp; <span style="color: #2de621"><b>sws</b></span></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">sakhter@avalon:~/cs631/2014-Fall/final-project/slytherin$ git add src</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">sakhter@avalon:~/cs631/2014-Fall/final-project/slytherin$ git status</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"># On branch master</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"># Changes to be committed:</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"># &nbsp; (use "git reset HEAD &lt;file&gt;..." to unstage)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#<span class="Apple-tab-span" style="white-space:pre">        </span>new file: &nbsp; src/Makefile</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#<span class="Apple-tab-span" style="white-space:pre">        </span>new file: &nbsp; src/cgi.c</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#<span class="Apple-tab-span" style="white-space:pre">        </span>new file: &nbsp; src/cgi.h</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#<span class="Apple-tab-span" style="white-space:pre">        </span>new file: &nbsp; src/main.c</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#<span class="Apple-tab-span" style="white-space:pre">        </span>new file: &nbsp; src/net.c</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#<span class="Apple-tab-span" style="white-space:pre">        </span>new file: &nbsp; src/net.h</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#<span class="Apple-tab-span" style="white-space:pre">        </span>new file: &nbsp; src/request.c</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#<span class="Apple-tab-span" style="white-space:pre">        </span>new file: &nbsp; src/request.h</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#<span class="Apple-tab-span" style="white-space:pre">        </span>new file: &nbsp; src/response.c</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#<span class="Apple-tab-span" style="white-space:pre">        </span>new file: &nbsp; src/response.h</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">sakhter@avalon:~/cs631/2014-Fall/final-project/slytherin$ git commit -m "adding sadia's code to src dir"</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">[master 5434fb9] adding sadia's code to src dir</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;10 files changed, 425 insertions(+)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;create mode 100644 src/Makefile</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;create mode 100644 src/cgi.c</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;create mode 100644 src/cgi.h</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;create mode 100644 src/main.c</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;create mode 100644 src/net.c</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;create mode 100644 src/net.h</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;create mode 100644 src/request.c</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;create mode 100644 src/request.h</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;create mode 100644 src/response.c</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;create mode 100644 src/response.h</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">sakhter@avalon:~/cs631/2014-Fall/final-project/slytherin$ git status</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"># On branch master</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;"># Your branch is ahead of 'origin/master' by 1 commit.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">#</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">nothing to commit (working directory clean)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">sakhter@avalon:~/cs631/2014-Fall/final-project/slytherin$ git push&nbsp;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Warning: the ECDSA host key for '<a href="http://linux-lab.cs.stevens.edu">linux-lab.cs.stevens.edu</a>' differs from the key for the IP address '155.246.89.100'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Offending key for IP in /home/sakhter/.ssh/known_hosts:4</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Matching host key in /home/sakhter/.ssh/known_hosts:9</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Are you sure you want to continue connecting (yes/no)? yes</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Password:&nbsp;</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Counting objects: 14, done.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Delta compression using up to 6 threads.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Compressing objects: 100% (13/13), done.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Writing objects: 100% (13/13), 4.03 KiB, done.</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">Total 13 (delta 0), reused 0 (delta 0)</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">error: insufficient permission for adding an object to repository database ./objects</div><div style="margin: 0px; font-size: 11px; font-family: Menlo; min-height: 13px;"><br></div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">fatal: failed to write object</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">error: unpack failed: unpack-objects abnormal exit</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">To <a href="mailto:sakhter@linux-lab.cs.stevens.edu">sakhter@linux-lab.cs.stevens.edu</a>:~jschauma/apue/slytherin</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">&nbsp;! [remote rejected] master -&gt; master (n/a (unpacker error))</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">error: failed to push some refs to '<a href="mailto:sakhter@linux-lab.cs.stevens.edu">sakhter@linux-lab.cs.stevens.edu</a>:~jschauma/apue/slytherin'</div><div style="margin: 0px; font-size: 11px; font-family: Menlo;">sakhter@avalon:~/cs631/2014-Fall/final-project/slytherin$&nbsp;</div></div><div><br></div><div><br></div><br><div><div>On Nov 14, 2014, at 4:07 PM, Boxiang Dong &lt;<a href="mailto:bdong@stevens.edu">bdong@stevens.edu</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Hi, Sadia,<div><br></div><div>Have you used "git status" to check if you have already added the new files to the current index?</div><div><br></div><div>Thanks,</div><div><br></div><div>Boxiang&nbsp;</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 14, 2014 at 2:44 PM, Sadia Akhter <span dir="ltr">&lt;<a href="mailto:sakhter@stevens.edu" target="_blank">sakhter@stevens.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto;"><div style="word-wrap:break-word">Hello,<div><br></div><div>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.</div><div><br></div><div>Thanks,</div><div>Sadia</div><div><br></div><div><br><div><div style="margin:0px;font-size:11px;font-family:Menlo">sakhter@avatar:~/cs631/2014-Fall/final-project/slytherin$ git push</div><div style="margin:0px;font-size:11px;font-family:Menlo">Warning: the ECDSA host key for '<a href="http://linux-lab.cs.stevens.edu/" target="_blank">linux-lab.cs.stevens.edu</a>' differs from the key for the IP address '155.246.89.100'</div><div style="margin:0px;font-size:11px;font-family:Menlo">Offending key for IP in /home/sakhter/.ssh/known_hosts:4</div><div style="margin:0px;font-size:11px;font-family:Menlo">Matching host key in /home/sakhter/.ssh/known_hosts:9</div><div style="margin:0px;font-size:11px;font-family:Menlo">Are you sure you want to continue connecting (yes/no)? yes</div><div style="margin:0px;font-size:11px;font-family:Menlo">Password:&nbsp;</div><div style="margin:0px;font-size:11px;font-family:Menlo">Counting objects: 14, done.</div><div style="margin:0px;font-size:11px;font-family:Menlo">Delta compression using up to 6 threads.</div><div style="margin:0px;font-size:11px;font-family:Menlo">Compressing objects: 100% (13/13), done.</div><div style="margin:0px;font-size:11px;font-family:Menlo">Writing objects: 100% (13/13), 4.02 KiB, done.</div><div style="margin:0px;font-size:11px;font-family:Menlo">Total 13 (delta 0), reused 0 (delta 0)</div><div style="margin:0px;font-size:11px;font-family:Menlo">error: insufficient permission for adding an object to repository database ./objects</div><div style="margin:0px;font-size:11px;font-family:Menlo;min-height:13px"><br></div><div style="margin:0px;font-size:11px;font-family:Menlo">fatal: failed to write object</div><div style="margin:0px;font-size:11px;font-family:Menlo">error: unpack failed: unpack-objects abnormal exit</div><div style="margin:0px;font-size:11px;font-family:Menlo">To&nbsp;<a href="mailto:sakhter@linux-lab.cs.stevens.edu" target="_blank">sakhter@linux-lab.cs.stevens.edu</a>:~jschauma/apue/slytherin</div></div></div></div><br>_______________________________________________<br>
cs631apue mailing list<br>
<a href="mailto:cs631apue@lists.stevens.edu">cs631apue@lists.stevens.edu</a><br>
<a href="https://lists.stevens.edu/mailman/listinfo/cs631apue" target="_blank">https://lists.stevens.edu/mailman/listinfo/cs631apue</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Boxiang Dong<div>Ph.D Candidate</div><div>Department of Computer Science</div><div>Stevens Institute of Technology</div><div>Hoboken, NJ, USA</div></div></div>
</div>
</blockquote></div><br></body></html>