Skip to content

This is a repository for new students to learn about git

Notifications You must be signed in to change notification settings

cthit/git-workshop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Git workshop

The demo uses GitHub Desktop.

Step 1 - Fork the repository

First create your own fork!

Screenshot from 2024-10-03 18-06-55

Next clone the repository!

Step 2 - Create a branch and switch to it

Create your branch

  • put your name in the file README.md

Staging

Committing

Pushing

Step 3 - create a pull request

A.k.a. how to update your main branch the proper way.

First you enter the menu

Screenshot from 2024-10-03 18-23-54

Then you create your pull request!

image

Step 4 - change branch to the prepared merge conflict branch

solve the merge conflict

Step (närsom) - run the program

Installing

Download the Python 3 installer package from the official website and install it, if not installed previously.

Run the following in the terminal to install the Pygame library

pip3 install pygame

Running the application

run the file just as any other Python script (.py) file.

python3 Snake\ Game.py

The difficulty variable can be changed with the values provided in the comment to set the difficulty level.

Prerequisites

  • Python
  • Pygame, an open source Python library for making multimedia applications

About

This is a repository for new students to learn about git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages