Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
stop68028yThis is what I would do for a simple setup (I assume that git is installed on the server):
1. Login as user git
2. Create a folder with <PROJECTNAME>
3. type: git --init
4. logout
5. Open a shell in your Project folder
6. type: git remote add <PROJECTNAME> git@<SERVERURL>:<PROJECTNAME>/.git
7. type: git pull
8. type: git push
<PROJECTNAME> is your Projectname and <SERVERURL> the url or IP-address.
If there is a warning in step 7 follow the comands. All ither should work and if the folder exists from step 2, there should be nothing.
I hope this helps you. -
hexacore6388yHow are you connecting to the remote repo? Is it a private repo from a third party? (GitHub)
If it's SSH you'll need to set up a new key pair so the user account on the server has access to the repo.
Related Rants
My vServer setted Up recently is working.. nearly.. git isn't working.. cant Push to the server.. permission denied, Can not read.. Shit! Any suggestions?
I can login to my Server with my Public Key, but for some reason not with git. Maybe I will Dream from a Solution. Good night ;)
undefined
server
git
permission denied
shit