enlightened@enlightened-desktop:~/abcd$ git clone ssh://git@localhost/../../var/www/test/.git
Initialized empty Git repository in /home/enlightened/abcd/test/.git/
git@localhost's password:
remote: Counting objects: 8, done.
remote: Compressing objects: 100% (7/7), done.
remote: Total 8 (delta 1), reused 0 (delta 0)
Receiving objects: 100% (8/8), 4.62 KiB, done.
Resolving deltas: 100% (1/1), done.
enlightened@enlightened-desktop:~/abcd$ git branch
fatal: Not a git repository (or any of the parent directories): .git
enlightened@enlightened-desktop:~/abcd$ cd test/
enlightened@enlightened-desktop:~/abcd/test$ git branch
* master
enlightened@enlightened-desktop:~/abcd/test$ ls
abcd.txt scriptlance
enlightened@enlightened-desktop:~/abcd/test$ git remote add origin ssl://localhost/../../var/www/test/.git
fatal: remote origin already exists.
enlightened@enlightened-desktop:~/abcd/test$ echo "I added a remote repo" > abcd.txt
enlightened@enlightened-desktop:~/abcd/test$ git commit -a -m "Commit New"
[master 863e2e1] Commit New
1 files changed, 1 insertions(+), 2 deletions(-)
enlightened@enlightened-desktop:~/abcd/test$ git push origin
warning: You did not specify any refspecs to push, and the current remote
warning: has not configured any push refspecs. The default action in this
warning: case is to push all matching refspecs, that is, all branches
warning: that exist both locally and remotely will be updated. This may
warning: not necessarily be what you want to happen.
warning:
warning: You can specify what action you want to take in this case, and
warning: avoid seeing this message again, by configuring 'push.default' to:
warning: 'nothing' : Do not push anything
warning: 'matching' : Push all matching branches (default)
warning: 'tracking' : Push the current branch to whatever it is tracking
warning: 'current' : Push the current branch
git@localhost's password:
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 307 bytes, done.
Total 3 (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: unpacker exited with error code
To ssh://git@localhost/../../var/www/test/.git
! [remote rejected] master -> master (n/a (unpacker error))
error: failed to push some refs to 'ssh://git@localhost/../../var/www/test/.git'
enlightened@enlightened-desktop:~/abcd/test$