Deploy to a machine in the network using git
I am developing an app and version-control it using git at github. Now there is another machine for testing purposes without access to the internet, so I cannot pul开发者_JS百科l the changes from github. I am able to connect to the test server through the network.
My question is: is it possible to push changes from the development repository to the test repository directly and if so - how (can I setup the test-machine as remote)?
I am new to version-control and to git, so please be nice :)
A simple share to the test repo should be enough
git remote add test file:////path/to/test/repo
or simply:
git remote add test /path/to/test/repo
(See git remote)
That is enough to make a push to the test repo.
See this example
精彩评论