Beginner’s guide to GitHub: Adding code to your repository
In GitHub for Beginners, users are taught how to use the GitHub flow to add code to a repository. The process involves cloning a repository to create a local copy for working on, which can then be synced with the repository stored in GitHub to share updates. The tutorial also explains the process of creating a new branch whenever adding code to a repository to protect the main branch. It is also possible to use GitHub Desktop to create these branches and add code. The article explains the process of adding new files, such as HTML and Javascript files, and committing these to the staging area in the terminal. Code can then be pushed to the repository and a pull request can be opened in order to merge changes into the main branch. This tutorial is part of a series that covers fundamental GitHub features and strategies to manage projects effectively. Other installments discuss adding files to a repository, how to create your first repository, and tips for coding with confidence.
read full post