Hi all,
Firstly, I hope this is a reasonable place to post this question. It looked like the most appropriate forum, but I DID debate putting it in
the DevOps forum.
Anyway, I've got a server and a laptop client. I've generated and setup the SSH keys and that part seems to be fine. I've installed git on both machinesl and following some tutorials on the web I've got the /home/git directory set it up as a repositiory, etc. I'm going to try to describe the problem I'm having as clearly as I can. I can't tell you ALL of the things I've tried to solve this (it's been hours of reading tuts and trying things), but I'll describe where I'm at.
On my server I have /home/git/devel and I've run init so that the .git files are in the appropiate directories. If I do a git show, it lists the 'devel' object. On my client laptop, I've got /home/me/devel/python/app/krh_itunes_dash and a bunch of files in itunes_dash.
What I wanted to do was make /home/me/devel on my laptop a git repository and EVERYTHING underneath it part of the repository.
So I CD's into /home/me/devel and did 'git init'. Then I did 'git add .' and it looked like it added all of the files in my itunes_dash directory. Then I did a bundh of git 'commits' which seemed to work, but then when I looked on the server nothing had changed. Finally in my stupor, I realized that the commits were probably happening to my LOCAL git repository.
So, did some quick tuting and it looked to me (I could be wrong and probably am) that I need to 'push' the commit out to my server.
So, from my laptop I tried 'git commit push git@"server IP address":/home/git/devel (also tried it with 'devel.git' on the end because of the way one of the tuts was written).
Anyway I keep getting the message that the path is invalid and it calls out everything from 'git@' to the end of the command string.
I've tried a bunch of stuff just to try to get SOMETHING to happen, but no joy.
So can anybody just steer me in the right direction here? I have VERY little experience with git. I used it on the job 10 years ago, but I was strictly a user, not an admin.....
thanks,
keith
Firstly, I hope this is a reasonable place to post this question. It looked like the most appropriate forum, but I DID debate putting it in
the DevOps forum.
Anyway, I've got a server and a laptop client. I've generated and setup the SSH keys and that part seems to be fine. I've installed git on both machinesl and following some tutorials on the web I've got the /home/git directory set it up as a repositiory, etc. I'm going to try to describe the problem I'm having as clearly as I can. I can't tell you ALL of the things I've tried to solve this (it's been hours of reading tuts and trying things), but I'll describe where I'm at.
On my server I have /home/git/devel and I've run init so that the .git files are in the appropiate directories. If I do a git show, it lists the 'devel' object. On my client laptop, I've got /home/me/devel/python/app/krh_itunes_dash and a bunch of files in itunes_dash.
What I wanted to do was make /home/me/devel on my laptop a git repository and EVERYTHING underneath it part of the repository.
So I CD's into /home/me/devel and did 'git init'. Then I did 'git add .' and it looked like it added all of the files in my itunes_dash directory. Then I did a bundh of git 'commits' which seemed to work, but then when I looked on the server nothing had changed. Finally in my stupor, I realized that the commits were probably happening to my LOCAL git repository.
So, did some quick tuting and it looked to me (I could be wrong and probably am) that I need to 'push' the commit out to my server.
So, from my laptop I tried 'git commit push git@"server IP address":/home/git/devel (also tried it with 'devel.git' on the end because of the way one of the tuts was written).
Anyway I keep getting the message that the path is invalid and it calls out everything from 'git@' to the end of the command string.
I've tried a bunch of stuff just to try to get SOMETHING to happen, but no joy.
So can anybody just steer me in the right direction here? I have VERY little experience with git. I used it on the job 10 years ago, but I was strictly a user, not an admin.....
thanks,
keith