Welcome to project 16x16! If you are new to the GitHub and open source world, we recommend you to take a look at this 10 minute read introduction.
First, you need to make a copy of this repository to be able to modify it on your side. This is called a fork. To fork Project 16x16, simply go to the repository page and click on the Fork button located at the top right corner.
Then, you will need to download git. Git is a version-control system for tracking changes in source code. It is used through the command line or third-party software.
Here are three options for software to use git. If you want to get started without too much hassle and command lines, then we strongly suggest using GitHub Desktop or Source tree. Otherwise, if you really like command lines, then check out the instructions for git.
git | GitHub Desktop | Source tree |
You have a fork of the project on your GitHub account (the cloud). Now you need to get a local version on your computer. Here is how to do so:
- Open command prompt if you are on Windows or open Terminal if you are on a mac
- Navigate to where you want your project to be cloned. In command prompt, type
cd directory/to/where/you/want/your/project
for example:cd C:/Users/Noodleman123/Desktop/Programming/Java
- To clone the project, execute
git clone https://github.com/your-github-username/Project-16x16/
a valid url could be:https://github.com/Noodleman123/Project-16x16/
- Execute
cd Project-16x16
to go in the project directory - Execute
git checkout master
to have the right files, the ones that are being developed.
Here is a summary of all the commands:
cd directory/to/where/you/want/your/project
git clone https://github.com/your-github-username/Project-16x16/
cd Project-16x16
git checkout master
Every now and then, it is a good practice to sync your local version to the cloud version origin
. This is particularly useful to stay up to date and avoid merge conflicts:
git pull
You should execute these 2 commands every time you complete a task:
git add .
git commit -m "a description telling what you modified/added"
The first command adds everything that has been modified to the history of your local version control. The second command will group the changes in a commit with a description.
You should save your local work on your forked GitHub when you accomplish something. If your computer breaks, at least your code will be safe in the cloud 👍
git push
That's it for the git setup! Now, you are ready to open up the code editor. Don't forget to come back to this file when you are ready to know about the Process of Making Changes.
Download GitHub Desktop
Every now and then, it is a good practice to sync your local version to the cloud version origin
. This is particularly useful to stay up to date and avoid merge conflicts:
It is recommended to create a commit every time you complete a task:
That's it for the GitHub Desktop setup! Now, you are ready to open up the code editor. Don't forget to come back to this file when you are ready to know about the Process of Making Changes.
Download Source tree
Warning Two-factor authentication is required for your GitHub account to continue...
Every now and then, it is a good practice to sync your local version to the cloud version origin
. This is particularly useful to stay up to date and avoid merge conflicts:
It is recommended to create a commit every time you complete a task:
That's it for the Source tree setup! Now, you are ready to open up the code editor. Don't forget to come back to this file when you are ready to know about the Process of Making Changes.
You are now ready to contribute! Github represents tasks as issues. You can find all of the issues here or in the Issues tab of the repository. If you found a bug, would like to add a feature or simply do not find something interesting to contribute to, then you can create your own issue.
A pull request is the final step to contribute something. A request should be made when you complete a "milestone" or resolve an issue. Here is how to open one:
Step | Screenshot |
---|---|
Go to the project 16x16 GitHub repository and click on Pull requests | |
Click on the big green Pull request button | |
Click on compare across forks. The Head repository should be your fork, and the Base should be Stephcraft/Project-16x16 . Be sure to choose the right repository and the correct branch which is usually master . |
|
Add a title, a description and tags (if necessary). | |
Your pull request will be reviewed by a collaborator shortly | 🎉🎉 |