I have limited access to server. What I did:
Server:
mkdir project.git
cd project.git
git init --bare
My local pc (windows):
git clone myusername@myserver.com:project.git
// make some files
git commit -m 'init'
git push
I can work with no problem using my server (push, pull, branch, whatever). Problem is that each operation require password and it is annoying (I have long passwords).
I was trying this: git config credential.helper store
Edit after @VonC answer
This is about SSH config, not GIT. The solution IS available in topic Configuring Git over SSH to login once but is on the bottom with only 17 votes.
- I've already had configured GIT ssh key.
- Only thing I had to do was
ssh-copy-id -i .ssh/id_rsa.pub userlogin@sshserver.com
*. Done! No more password need.
Full process, including generating ssh key can be found here: SSH with authentication key instead of password*
*ssh commands are available from git-bash on Windows