Sharing code base
This method allows you to deploy code changes performed locally into the workstation, and relies on git
.
In order to create the repository inside the directory <REPO_NAME>
, type from the workstation:
This command will create and empty repository.
Note: the directory <REPO_NAME>
must end with .git
In order to store and update the code base, you'll have to set up a hook. From inside the repo, type:
From inside the text editor, type:
Note: remember to specify the entire repository path in <REPO_PATH>
.
Exit the text editor and make the script executable:
In order to configure git to push code to the workstation, type from the local machine, within the local copy of the repository:
You can now push changes to the workstation by typing:
Note: this will override any manual changes on the remote files affected by the commits.
Last updated