
It will just be a directory that contains files and possibly subdirectories, all of which contain your application. If you want to share a locally created repository, or you want to take contributions from someone elses repository - if you want to interact in any way with a. You’ve already got a local directory if you’re needing to back it up to a remote repository. After creating the remote and local repositories, the trick now is.

#GIT ADD REMOTE HOST INSTALL#
Then, install git client in local machine.

#GIT ADD REMOTE HOST SOFTWARE#
#GIT ADD REMOTE HOST HOW TO#
Here’s how to add a new remote explicitly. If you want to add your git remote repository go to your project directory and use git remote add command to connect local directory to remote repository. By default, git requires a server username. We’ve mentioned and given some demonstrations of how the git clone command implicitly adds the origin remote for you. In other cases where you started with a fresh local repository, no remote connections are saved. It saves it as a remote called 'origin' by default. Now, Git has both a command line and a GUI interface. After initializing the local repository, one needs to add at least one remote repository to push code to that remote. When you clone a repository from a remote server, Git automatically remembers this connection for you. Whenever we have tested out some new functionality on a development version, we push it back to the central repository. There is heaps to Git, but the way we want to use it is to have the definitive version of the software on a backed up remote server, and have development version(s) of the software on development PCs. If you want to know lots about it, read the book.

It allows you to keep a definitive production version of your software while at the same time branching off other versions to do development, that can be merged back into the main version if required. Okay, I accept Git remote repositories is rather geeky article subject and may have limited appeal to non web software development people.īut this is something we have to do only occasionally and can never remember how to do it, so the article works as an aide memoire for us, in addition to providing you with an enlightening subject.įor context, Git is a brilliant software versioning system.
