Creating and Managing a Repository in GitHub
Description
This tutorial provides a comprehensive guide on how to create and manage a repository in GitHub, including creating new files, handling pull requests, and managing issues.
Transcript
Hello everyone. Let's see how you can create a new repository in GitHub. First, click on New button. Here you will see that you have option to create where you want to create the repository. If you click on this drop down you see three options here. This is my account. This is the two of the organization where I have joined. Click on this input box. Write the repository name. Then you can enter the description. Write description about the repository. You can make the private or public by clicking any one of the switch here. Currently I will make it private by clicking on the private button. If you click on this switch you will add a new readme file into your repository. A new readme file will be added into your repository. If you click on this drop down, I don't know what will happen. If you click on this drop down, I don't know what will happen. So leave it. Click on Create repository button again. Then your new repository will be created. If you want to add a new file, click on this drop button. A drop down will appear. Click on this Create a new file. Here input is there to write the name of the file. Write the file name index.js. Here is a preview where you can edit the content of the file. I'm gonna write some stuff. Then you can directly commit the changes from here only. Click on this commit changes button. A message model will appear. Write the commit message into this input box. First commit. If you want to add some description about the commit. Write this description into this is the description. Here's a 2 option to create a new branch for this commit and start a pull request. And commit directly to the main branch. If you commit directly to the main branch, these all changes will directly push to the main. If you create a new branch, a new pull request will be created. I'm going to create a new branch for this. I'm going to click on propose changes and click on save. Here we can see a new pull request is created. Give the title of the pull request. Add some description. There's already a description. Click on Create pull request button. Here we can see that a new pull request is created. Now we can see the commit we have done in this pull request. This is the commit. We can see the file changes in this pull request. Here we can see the file we have added and changes we have made in the file. If we click on the pull request tab again and click on the first commit. We can see if you want to merge this pull request. Or we want to close the pull request? Here are some labels which we can add. If you click on this setting button. Here we can see more of the labels. What kind of pull request this is determined by this label. If we just add this good first issue. This pull request will be added by label, you know, good first request. If we click on merge pull request. Here we can add some commit message commit header. Click on Confirm merge. This pull request will be merged into the main branch. Now let's create a new issue. To create a new issue, just click on this new issue button. You can give some title. Like change the console message in the index. Add some description about the title about the issue. You can assign yourself. Click on assign yourself button. You can give some labels about like bug. You can then now submit the new issue. The new issue will be created. Here you can see that in this repository there is a new issue I have just created now. If you want to close this issue, just click on this close issue button. Now let's change the repository name. I don't like this repository name. If you want to change this, click on the setting button. Here you can see a rename button and an input box. Just edit the name you want to keep. I'm gonna keep it MacBook. Click on rename button. Your repository name will be renamed. How do you see how many branches are in this repository? Click on this drop button. A drop down will appear. You can see that there are two branches in this repository. This is the default. And this is we have created. You can also search by clicking on this input box. Just search the branch name. The branch name will appear. If you want to edit the readme file, click on this pencil button. Here you can write some markdown. Add and edit the readme file. Just commit change. The same thing will appear. We want to create commit directly to the main branch. Or create a new branch and then commit it. This time I'm gonna commit directly to the main branch. Click on commit changes. You can see that our new changes are directly committed to a main branch. If we go to the code. We can see that changes are now visible here. If you want to fork this repository then click on this button. You can name the fork. But we will not gonna do this. Let's go back to settings. Now if you want to add some collaborators on this repository. So that they can also make changes.