Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

We are a team of three, all working on our local machines on the same internal network.

We will all be working on websites in local working copies of the same Git repo hosted on Github.

We have an internal staging machine here (dev.internal), and I am looking for a way for us to be able to push to this machine. At each milestone in the development cycle.

In essence, all I really want us to be able to do is add the dev.internal machine as a remote, and push to this whenever we are ready.

Could somebody please point me in the right direction to get this set up?

share|improve this question
add comment

1 Answer 1

git add remote devinternal <remoteurl>
git push devinternal master:master
share|improve this answer
    
Hi, thanks, so should <remoteurl> be the file path? Eg: /Volumes/username/Sites/testdomain.internal ? –  Dashman Jul 4 '12 at 13:32
    
<remoteurl> should be whatever URL is required to access the central git repository. –  womble Jul 4 '12 at 13:47
    
OK, great. Thanks for your help. –  Dashman Jul 4 '12 at 15:42
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.