GitHub

Gert Coppens
3 min readMay 10, 2021

--

GitHub is a free code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere.

Make an account here, it’s totally free.

GitHub 101

Repository: Basically a container on the web server containing all the project files.

Create a new repository and call it “MyProject”, initialize with a README enabled.

By default your repository has one branch named ‘main’ which is considered to be the definitive branch. We typically use branches to experiment and make changes to the files before committing them to the main branch.

This allows your team to work on different parts of the project files and later merge them together.

Branching is a way to work on different versions of a repository at one time.

To create a new branch go to your project “MyProject” at Github and call it “development”.

Commits on GitHub are saved changes. Each commit has an associated commit message, which is a description explaining why a particular change was made. Commit messages capture the history of your changes, so other contributors can understand what you’ve done and why.

Once you are in the development branch click on the README.md file edit Icon.

Type “new development branch created, initial commit”, Click Commit and return to the development portal.

You can see that the project files have been changed now

Pull Requests are the heart of working together on GitHub. When you open a pull request, you’re proposing your changes and requesting that someone review and pull in your contribution and merge them into their branch.

Let’s create a pull request on the README.md file

You can compare the changes that you’ve made in the Example Comparisons Box. Any changes, additions and subtractions are shown in green and red. Click ‘Create pull request’ once satisfied.

Merging in GitHub allows us to bring your changes together.

Click on the ‘Merge pull request button’ followed by ‘Confirm merge button’ to be completely up-to-date with the latest changes.

To learn more about GitHub ; Guides, YouTube Channel and On-Demand Training.

Previous | Next

--

--

Gert Coppens
Gert Coppens

Written by Gert Coppens

Software Engineer — Unity Game and Application Developer

No responses yet