Github.html - Omkar9089/Omkar1 GitHub Wiki

GitHub

GitHub is a code hosting platform for version control and collaboration. It lets you and others work together on projects from anywhere. You’ll create your own repository and learn GitHub’s Pull Request workflow, a popular way to create and review code. INSTALLATION & GUIS With platform specific installers for Git, GitHub also provides the ease of staying up-to-date with the latest releases of the command line tool while providing a graphical user interface for day-to-day interaction, review, and repository synchronization.


GitHub for Windows

htps://windows.github.com

For Linux and Solaris platforms, the latest release is available on the official Git web site.

Git for All Platforms

htp://git-scm.com

Have a look towards the link given below. You will get the brief idea about github.

1.https://youtu.be/Lr7sYCrhxE0

2.https://youtu.be/WbwIoQYP6no

Step 1. Create a Repository

A repository is usually used to organize a single project. Repositories can contain folders and files, images, videos, spreadsheets, and data sets – anything your project needs. We recommend including a README, or a file with information about your project. GitHub makes it easy to add one at the same time you create your new repository. It also offers other common options such as a license file. Your hello-world repository can be a place where you store ideas, resources, or even share and discuss things with others.

create a new repository

1. In the upper right corner, next to your avatar or identicon, click and then select New repository.

2. Name your repository hello-world.

3. Write a short description.

4. Select Initialize this repository with a README.

Click Create repository.

Step 2. Create a Branch

Branching is the way to work on different versions of a repository at one time. By default your repository has one branch named main which is considered to be the definitive branch. We use branches to experiment and make edits before committing them to main. When you create a branch off the main branch, you’re making a copy, or snapshot, of main as it was at that point in time. If someone else made changes to the main branch while you were working on your branch, you could pull in those updates.

This diagram shows:

• The main branch

• A new branch called feature (because we’re doing ‘feature work’ on this branch)

Here at GitHub, we use branches for keeping bug fixes and feature work separate from our main (production) branch. When a change is ready, they merge their branch into main.

To create a new branch

1. Go to your new repository hello-world.

2. Click the drop down at the top of the file list that says branch: main.

3. Type a branch name, readme-edits, into the new branch text box.

4. Select the blue Create branch box or hit “Enter” on your keyboard.

Now you have two branches, main and readme-edits. They look exactly the same, but not for long! Next we’ll add our changes to the new branch.

⚠️ **GitHub.com Fallback** ⚠️