I have a git repo on my server and when I go to add a remote I use
git remote add origin git@gitserver:/opt/git/project.git
Or something like that. I am wondering how can I get rid of the /opt/git/ and just make it
git@server.com:project.git
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Make
/opt/gitthe home directory for thegituser ongitserver? Alternatively, putproject.gitin/home/git, or whatever the current home directory for thegituser is…