Git/C3/Hosting-Git-Repositories/English-timed
From Script | Spoken-Tutorial
|
|
00:01 | Welcome to the spoken tutorial on Hosting Git Repositories. |
00:06 | In this tutorial, we will learn about: Git repository hosting services |
00:11 | Creating a GitHub account |
00:14 | Creating a repository in GitHub and creating a tag in the repository. |
00:20 | To record this tutorial, I am using Ubuntu Linux 14.04 and Firefox web browser. |
00:29 | You can use any browser of your choice. |
00:32 | For this tutorial, you will need a working Internet connection. |
00:37 | You should also have basic knowledge of Git commands. |
00:42 | If not, for relevant Git tutorials, please visit the link shown. |
00:47 | First, let us learn about Git repository hosting services. |
00:52 | There are many web-based hosting services available such as Bitbucket, CloudForge and GitHub. |
01:00 | Here you can import your Git repositories free of cost. |
01:05 | They provide a centralized location to share your repository, so that many people can collaborate on a project easily. |
01:14 | They allow you to download and study others projects free of cost. |
01:19 | Next, we will see why to use GitHub. |
01:23 | GitHub has become the most popular website for housing Open Source Software. |
01:28 | In GitHub, you can view, discuss and review changes with your team effectively. |
01:35 | The procedure used in GitHub will be similar to other free Git hosting websites. |
01:42 | You can explore them yourself later. |
01:45 | Next, we will learn how to create an account in GitHub. |
01:49 | Open your web browser and go to www.github.com. |
01:56 | Here, in the homepage, you have to give your details for registration. |
02:01 | I will type: "priya-spoken" as user name and |
02:07 | "priyaspoken@gmail.com" as email-id. |
02:11 | Please type your preferred user name and valid email id. |
02:16 | Then, I will type my password. |
02:19 | You can give any password as per your choice. |
02:23 | Now, click on Sign up for GitHub button at the bottom right. |
02:28 | Next, in Step 2, we have to choose our plan. |
02:32 | I will choose Free plan as I want to use the free service. |
02:37 | Now, click on Finish sign up button. |
02:40 | Next, we will create a repository in GitHub. |
02:44 | You can see a button New repository in the right side box; click on it. |
02:51 | It shows a message “Please verify your email address”. |
02:55 | GitHub will send a verification mail to our registered email id. |
02:59 | So, we have to open our email account and click on the email which is sent by GitHub. |
03:06 | I have already signed-in to my email-id which is registered with GitHub. |
03:11 | Let me open it. |
03:13 | I have an email from GitHub. |
03:16 | Let me click on it. |
03:18 | The subject line says, “Please verify your email address”. |
03:23 | If the mail is not found in your Inbox, please check your Spam or Junk folders. |
03:29 | Now, click on Verify email address button. |
03:32 | We are redirected to the GitHub Homepage. |
03:36 | This indicates that we have successfully created our account in GitHub. |
03:42 | We will try to create a repository in GitHub. |
03:45 | Now, click on New repository button in the right side box. |
03:50 | You can see that now we are able to create repository. |
03:54 | Let us type: “stories” as Repository Name. |
03:58 | If you want to give any description about the repository, we can do so here. |
04:04 | Next, I will choose Public option, which is free of cost. |
04:09 | If we choose Private option, we have to pay some fees to keep our repository private. |
04:16 | This means that other users cannot find and download our repository. |
04:21 | Let me click on Public again. |
04:24 | Click on this checkbox, Initialize this repository with a README. |
04:28 | This will create a readme file. |
04:31 | In this file, you can write information about the usage of code or installation instructions. |
04:37 | It will be useful for all the collaborators. |
04:42 | However, if we are importing an existing repository, this box should be unchecked. |
04:48 | Now, click on Create repository button. |
04:52 | You can see the repository name along with your user name has been created successfully. |
04:58 | Once the repository is created, you can see the readme file label at the left bottom. |
05:05 | We will write some information in this file later. |
05:09 | By default, we can see a commit (i.e) Initial commit, one branch (i.e) master branch and one contributor. |
05:18 | You can click on each link and explore them at your convenience. |
05:23 | Now, let us start working in this repository. |
05:27 | We will begin by adding a file to our repository. |
05:31 | Click on New file button, in the middle panel. |
05:34 | A new form opens up for creating a file. |
05:38 | Here, I will give the file name as "kids-story.html". |
05:44 | I will copy and paste some code into this file, from my Writer document, which I had saved earlier. |
05:51 | Likewise, you can add some content into your file. |
05:55 | Let's commit this new file now. |
05:58 | Scroll down the page to give the commit message. |
06:01 | Here, in the commit message field, you can see the default message "Create kids-story.html". |
06:09 | You can keep the default message or type a new message. |
06:13 | I will keep the default message. |
06:16 | Here, in the next field, you can also give an extended description of the commit. |
06:22 | So here, I will type: "Added first file of the repository". |
06:27 | By default, we commit to the master branch. |
06:31 | Now click on Commit new file button. |
06:34 | Our new file kids-story.html is added to the repository. |
06:39 | Notice that now the commit number is increased to two. |
06:43 | Let’s click on it. |
06:45 | Here, you can see three dots next to the commit message. |
06:49 | Let me click on it. |
06:51 | It shows the description of the commit. |
06:54 | To know what we have done in the commit, click on that particular commit message. |
07:00 | Now you can see the details of the commit. |
07:03 | Let’s go back to the commit list. |
07:06 | For this, click on the left arrow button at the top left corner of the browser. |
07:11 | On the right side, you can see the hash value of the commit. |
07:15 | Click on Code tab, at the top left corner, to come back to the repository. |
07:21 | Next, let me demonstrate how to create a new branch in GitHub. |
07:26 | In the left side, you can see a drop-down list labeled Branch. |
07:31 | Click on it to create a new branch. |
07:34 | You can see a pop-up window opens up. |
07:38 | In the pop-up window, you can see Find or create a branch field. |
07:43 | I will type: "new-chapter" as the new branch name and press Enter. |
07:49 | You can see that the new-chapter branch is created and it is our current branch. |
07:55 | Next, we will make a commit in the new-chapter branch to understand the branching process better. |
08:02 | Let’s make some changes in kids-story.html file for demonstration purpose. |
08:09 | In the repository, click on kids-story.html file to open it. |
08:14 | At the top right corner of the editor panel, you can see an edit icon. |
08:19 | Click on it to edit this file. |
08:22 | I will add some lines here which I have copied from my Writer document. |
08:27 | You can do so likewise. |
08:30 | Now, we will commit this change. |
08:33 | I will keep the default commit message as it is. |
08:37 | Here, you can see the branch name new-chapter where this commit was made. |
08:43 | To commit, click on Commit changes button. |
08:46 | Let’s click on Code tab to go back to our repository. |
08:50 | Next, let’s check the commits of master and new-chapter branches. |
08:56 | Click on commits link. |
08:59 | Here, in the Branch drop down, we can select the branch name that we want to see. |
09:04 | I will select master branch in the list. |
09:08 | Once it is selected, the commits of the master branch will be listed. |
09:13 | To see the commits of new-chapter branch, we will select new-chapter in the Branch drop down. |
09:19 | Now, you can see the commits of new-chapter branch. |
09:24 | Let’s click on Code tab to go back to our repository. |
09:28 | Next, let us see how to create a tag in GitHub. |
09:32 | We already know that tagging is used to mark a commit stage as important. |
09:38 | For example, say, I want to create a tag in the master branch after adding kids-story.html file. |
09:46 | To create a tag, first click on releases link. |
09:50 | Click on Create a new release button. |
09:54 | A new form opens up. |
09:56 | In the Tag Version box, type "V1.0". |
10:01 | In the Release title box, type: "Version one". |
10:05 | In the Write box, we can give the description of our tag. |
10:10 | I will type: “This is the version one”. |
10:13 | Now, click on Publish release button. |
10:18 | Here, on the left side, you can see the hash value of the latest commit. |
10:24 | We already know that by default, the tag will be created in the latest commit. |
10:30 | With this, we come to the end of this tutorial. |
10:33 | Let us summarize. |
10:35 | In this tutorial, we have learnt about: |
10:38 | Importance of online Git hosting services |
10:42 | Creating a GitHub account |
10:44 | Creating a repository in GitHub and * creating a tag in the repository. |
10:50 | As an assignment- |
10:52 | Create a repository in GitHub. |
10:54 | Add few files to the repository. |
10:57 | Edit the files and do some commits and try to create branches and tags in the repository. |
11:05 | The video at the following link summarizes the Spoken Tutorial project. |
11:10 | Please download and watch it. |
11:12 | The Spoken Tutorial Project team conducts workshops and gives certificates to those who pass online tests. |
11:20 | For more details, please write to us. |
11:23 | Spoken Tutorial Project is funded by NMEICT, MHRD, Government of India. |
11:29 | More information on this mission is available at the following link. |
11:34 | This is Priya from IIT Bombay, signing off. Thanks for joining. |