Skip to content
This repository was archived by the owner on Feb 12, 2020. It is now read-only.

CosmoQuestTeam/wiki

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to the CosmoQuest Github Wiki

This wiki contains instructions for accessing the CosmoQuest github repositories.

Git Repositories

The two primary repositories are cosmoquest and cosmoquest-wordpress. Both are currently only viewable via CosmoQuestTeam Github members.

Branches

All repositories have both a master and develop branch.

The develop branch is used as a staging area for the project. Development of new code, both new features and long term bug fixes, should be placed in the develop branch. When code in the develop branch is considered ready to be on the live server, a pull request must be created so that the changes can be viewed and discussed with all development team members. For more information on creating pull requests on Github, please check the Github Documentation.

The master branch contains code that is running on the live site. Code must be considered stable and ready for production before it is pulled into the master branch.

Live Fixes

In the event that live fixes are necessary, they are to be places in the livefixes branch. This branch comes from the master branch directly. In order to effectively use the livefixes branch we must follow the following procedure.

  1. If the livefixes branch does not already exist, create a new branch off of the master branch. Otherwise, checkout the livefixes branch and pull the latest version of master onto it.
  2. Push the changes from 1 onto Github (the origin/livefixes branch).
  3. Make any changes that are necessary and commit them.
  4. When all changes are made, push them to the livefixes branch.
  5. Issue a pull request to add the fixes to the master branch.
  6. If the changes are approved for the master branch, switch to the develop branch and pull the changes from livefixes onto it.
  7. Ensure all members of the development team are aware of the live fixes so that they can be incorporated into permanent changes.

Switching to a develop branch

If team members are currently on the master branch then they should immediately switch to the develop branch. The process of switching to the develop branch is different depending on the software configuration of the development environment. Below is a list of examples to help team members switch to the develop branch.

PhpStorm

  1. With the repository open, click on VCS in the menubar. Then go down to Git, and click on Fetch. vcs_git_fetch
  2. Next, click on VCS in the menubar again and then go down to git and select Branches. vcs_git_branches
  3. From this window select origin/develop and in the second pop-up window select checkout new local branch. git_branches_checkout_new_local
  4. To confirm what branch you are currently on, use the Git notification in the bottom right of the task bar. The branch name is displayed as Git: branchname as well as being displayed when hovered over. git_notification_taskbar

System or Git Shell

The system shell (usually Bash on Linux or TCSH on MacOS) as well as the Git Shell (Windows) can be used to manage git repositories manually.

  1. From within the repository directory (in my case /home/ryan/cosmoquest) use the git fetch command to update your local repositories list of branches. git_fetch
  2. To confirm what branch you are currently on, use the git branch command. It will display the branch you have checked out in green with a * in front of the name. In the image bellow, only the master branch has been checked out locally. git_branch_master
  3. In order to be on the develop branch, you must checkout the remote origin/develop branch as a new local branch. To do so with git ≥ 1.6.6, use the git checkout command. git_checkout_develop
  4. Finally, confirm you are on the develop branch by using the git branch command. The develop branch should be green and have a * in front of the name. git_branch_develop

About

CosmoQuest github wiki

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published