GitHub
GitHub
is a cloud-based service/platform that allows programmers or software developers to manage and store their code. Users can even track and control the changes they made to their code. GitHub is mainly used to share users' code and to collaborate on shared work. Multiple users can collaborate on GitHub to develop a single software or program. GitHub offers free service to it's individual or team users for public repositories and upto 500GB of storage and 2000 actions for private repositories (you will fully understand this once you are done reading the entire blog post). It also supports a command line version to manage everything.
A few key terms and concepts to fully understand GitHub are:
Repository
It is a location where all the files for a particular project are stored. It is like a folder on a computer. Each repository can be accessed using a unique url.
First thing that a user needs to do to use GitHub is to create an account:
- Go to Github.com and click on sign up, on the top right corner of the page
- Enter the required information and click on Create account
Create a Repository:
- Go to Github.com and log into you account
- Click on +, in the upper right corner and select New repository
- Enter a name and discription for the repository
- Check Initialize this repository with a README
Branch
- Go to your repository
- Click the drop down at the top of the file list that says branch: main.
- Type a branch name into the text box.
- Select the Create branch box or hit “Enter”
Commiting a change
- Click on a file in the repository
- Click the pencil icon in the upper right corner of the file view to edit
- Write a commit message that described the changes
- Click on Commit changes button
Pull request
- Click the Pull Request tab and then click the green New pull request button on the Pull Request page.
- Select the appropriate branch and look over the changes in the differences on the compare page.
- Once satisfied, click the Create Pull Request button.







Comments
Post a Comment