I would like to use Git in my local computer such that,
H:\Projects\projectname will be my server-like repository and I would like work by cloning this repo to C:\Users\xxx\AptanaProjects\projectname
How can I do that ?
Thanks
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.
First you need to create a bare repository on H:. With git you usually name your bare repository with .git, so projectname.git in this case:
When this is done you change to c to create your repository:
After this you need to setup the bare repo on h: as the remote repository so you can push up the code you just commited to the repo on c:
Now, someone else can clone from H: to get your changes, and their repos will automatically be setup with the repo on H: as their origin.