Git Error Message

ERROR: insufficient permission for adding an object to repository database ./objects

# COMMAND:

git push -u origin master

# SOLUTION:
cd /opt/gitserver
sudo chown -R jerome:jerome *

ERROR: ssh: connect to host localhost port 22: Connection refused

# COMMAND: scp -r my_project.git jerome@localhost:/opt/git/
# SOLUTION:
## a. install ssh server

sudo apt-get install openssh-server

##b. modify yes to no PermitRootLogin of parameters in sshd_config file

sudo vim /etc/ssh/sshd_config

## c. restart ssh server

/etc/init.d/ssh restart

ERROR: The authenticity of host 'localhost (127.0.0.1)' can't be established. ECDSA key fingerprint is ....

# COMMAND: scp -r my_project.git jerome@localhost:/opt/git/
# SOLUTION:
ssh-keygen -t rsa -b 4096 -C "[email protected]"

eval "$(ssh-agent -s)"

ssh-add ~/.ssh/id_rsa

REF: https://help.github.com/articles/generating-an-ssh-key/

Permission denied (publickey),

COMMAND: git push
SOLUTION: please ensure the remote github server has your private ssh key. if not exist your private ssh key, you can solve it by this article

Not currently on any branch/master

git stash
git checkout master
git stash pop

git pull aborted with error filename too long

git config --system core.longpaths true

results matching ""

    No results matching ""