Skip to content

Instantly share code, notes, and snippets.

View neilluna's full-sized avatar

Neil Luna neilluna

View GitHub Profile

How to create a new repository.

  1. Create a new Repository on GitHub. Give it a Description and a license.
  2. Clone the repository to a local directory. The current branch should be main or master.
  3. Create and push the develop branch.
git checkout main
git checkout -b develop
git push --set-upstream origin develop

How to release a new version.

  1. Create a issue for the release. Name the issue Release x.y.0, where x is the major version number and y is the minor version number. Assign it to yourself.
  2. Create and push a release branch from the develop branch. Name the release branch release/x.y, where x is the major version number and y is the minor version number.
git checkout develop
git checkout -b release/1.2
git push --set-upstream origin release/1.2
  1. Test the project. Fixes are branched from, and merged back into, the release branch. See the Feature-Branch.md for details.

How to release a patch version.

  1. Create a issue for the release. Name the issue Release x.y.z, where x is the major version number, y is the minor version number, and z is the patch version number. Assign it to yourself.
  2. Check out the release branch release/x.y, where x is the major version number and y is the minor version number.
git checkout release/1.2
  1. Test the project. Fixes are branched from, and merged back into, the release branch. See the Feature-Branch.md for details.
  2. Update all version numbers, the readme file, and the change log. Commit this with the comment n - Updated version numbers, where n is the issue number of the issue created in step 1. Push the commit.

How to create, implement, and close a feature branch.

  1. Checkout the branch that will be the base of the new feature branch. This could be develop, a release branch such as release/1.2, or the main or master branch.
git checkout develop
  1. Create and push a new feature branch. Name the feature branch n-Feature-description, where n is the issue number of the feature, and Feature-description is the title of the feature branch. This title is often the same as, or similar to, the title of the issue.
git checkout -b 1-Feature-description
git push --set-upstream origin 1-Feature-description

Cygwin64 Installation

  • Installation directory: C:\Software\Cygwin
  • Repository directory: C:\Software\Archives\Cygwin
  • Download site: http://mirrors.kernel.org
  • Install the wget package:
    • Type wget into the Search edit box.
    • Expand the Web category.
    • Double click on the word Skip. It should change to a version number.
  • Click the Next button.