| Version 3 (modified by , 11 years ago) ( diff ) |
|---|
Version Control with git
Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.
To use git on Cypress, you have to load module. It is better to set this in .modulerc (see below).
Create a project repository
On your project directory, for example, (replace dpg with your project folder name)
Add a file and commit
You can work with this repository on Cypress.
Create a Bare Repository
If you want to make a git server repository, you have to make a Bare Repository. For example,
Add group write permissions to a repository so that people in your group can pull/push.
Make a Clone Repository
Make a clone repository on Cypress,
Make a clone repository over network, (you may have to type password)
Since git is not a default module on Cypress, you have to set ~/.modulerc like:
Free Git Repository
Basic Commands
Add new files
This command updates the index using the current content found in the working tree, to prepare the content staged for the next commit.
Commit
Stores the current contents of the index in a new commit along with a log message from the user describing the changes. At this point, only your local clone has your modification.
push
When you have your project at a point that you want to share with your group people, you have to push it to a master repository.
You may have to type password for Cypress.
pull
To pull current project in the master repository,
Documents
Attachments (1)
- GIT_model.png (43.9 KB ) - added by 11 years ago.
Download all attachments as: .zip
