title: Git save password of remote connection locally, connecting via root@
body: <p>I would just like to start by saying I am completely new to git so I am probably doing things the wrong way but am trying to follow posts on here and guides online. I know this is probably a dumb post, but I am just a web designer so very basic with this stuff, would appreciate any advice about the way I am doing this, or if there is a better way.</p>
  
  <p>I installed git on my centos vps and then setup my repository inside my website, location here:</p>
  
  <p><code>/var/www/vhosts/server.userfarmer.com/userfarmer/userfarmer.git</code></p>
  
  <p>The userfarmer folder before the .git folder is my main websites directory, I am trying to upload my website from my local machines via git to this folder. I set this up over ssh using:</p>
  
  <pre><code>mkdir userfarmer.git
  cd userfarmer.git
  git --bare init
  </code></pre>
  
  <p>I have then setup the git remote connection locally using:</p>
  
  <p><code>git remote add origin root@serverip:/var/www/vhosts/server.userfarmer.com/userfarmer/userfarmer.git</code></p>
  
  <p>now I can connect to this fine but each time I do I require my root password, is there anyway to save this so it is not needed each time I do a push.</p>
  
  <p>Any advice greatly appreciated, this is all completly new to me,
  Thanks,
  Simon</p>