wiki:cypress/git

Version 3 (modified by fuji, 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).

Error: Failed to load processor bash
No macro or processor named 'bash' found

Create a project repository

On your project directory, for example, (replace dpg with your project folder name)

Error: Failed to load processor bash
No macro or processor named 'bash' found

Add a file and commit

Error: Failed to load processor bash
No macro or processor named 'bash' found

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,

Error: Failed to load processor bash
No macro or processor named 'bash' found

Add group write permissions to a repository so that people in your group can pull/push.

Error: Failed to load processor bash
No macro or processor named 'bash' found

Make a Clone Repository

Make a clone repository on Cypress,

Error: Failed to load processor bash
No macro or processor named 'bash' found

Make a clone repository over network, (you may have to type password)

Error: Failed to load processor bash
No macro or processor named 'bash' found

Since git is not a default module on Cypress, you have to set ~/.modulerc like:

Error: Failed to load processor bash
No macro or processor named 'bash' found

Free Git Repository

Basic Commands

Add new files

Error: Failed to load processor bash
No macro or processor named 'bash' found

This command updates the index using the current content found in the working tree, to prepare the content staged for the next commit.

Commit

Error: Failed to load processor bash
No macro or processor named 'bash' found

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.

Error: Failed to load processor bash
No macro or processor named 'bash' found

You may have to type password for Cypress.

pull

To pull current project in the master repository,

Error: Failed to load processor bash
No macro or processor named 'bash' found

Documents

Attachments (1)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.