Git Tutorial 2 : What is Github? | github tutorial

codebasics · Beginner ·📐 ML Fundamentals ·9y ago

Key Takeaways

Explains Github and its features using the Git version control system

Full Transcript

welcome to core basics coding tutorial and this episode we are going to see what is github and why is it so popular github is a website that allows you to store your code onto the cloud now don't think of github as just a cloud storage it is a full-fledged version control system power bi get so without discussing it any further let's look at the demo so first we'll go to this website github calm here if you want to upload your code or if you want to contribute to someone else code you need to create your login so creating login is pretty straightforward you give it your email ID and password and you can sign up for github I am already signed up that's why I will just use sign-in button and log into my account ok so I had this account and I have this repository called py where I store all of my Python code so you see like I have all these Python files and my readme file which is here and bunch of directories and here what I have is all my commit history so whatever code I have committed all the versions and everything is stored so if you want one if I want to go back to any of the previous commit I can easily go and check what happened during that coming ok now I have the same codebase synced up on to my local computer here in this directory so this is py charm Python code editor and as you can see here I have same list of files and directories for example I have debugging modules multiprocessing so it's basically all these files I have them stored on this github cloud storage cloud storage is basically something like Gmail so Gmail you can access it from anywhere because it is not stored locally on your device computer or it could be a cell phone it is stored somewhere else so you can access it anytime similarly github is a cloud where my code is stored so if I want to log in from some other computer and make my code changes I can always do it okay now it is powered by a good version control system if you already don't know what is version control system I would suggest that you go and watch my video on the version control system okay so now I will show you how to make code change and push it to our github repository repository is basically this particular area it's like a directory with all the files and subdirectory into it so that's what I call a repository or a repo repo is a short form so learn P is my login name and py is my repository okay so I have this particular code which is not functioning the way it should so I am making some code changes here okay and I made my code changes higher on the program I make sure it works fine yes it is working fine so now I am ready to push my changes to get now before I make this changes let me show you what - dot py has on github so on github as you see I added these two lines ok but in github it is still my old code ok so I just got that code I added these two lines to fix some issue and now I am going to push my changes to github so I will say right-click git commit directory whatever changes I have I just want to commit it so I will save fixed a bug in taste dot py and I will say gump commit and push so what this will do is this will push my changes to upstream to here ok and now if I look at my commit log here you see fix a bug in test or py whatever I committed 11 seconds ago it is visible here and if I click here on this commit ID it will show me the difference you see these two lines are highlighted I it says that I added these two lines ok so now my code is pushed and if I look at this dot py file I have those two lines added here so this is a quick demo of how you push your changes to your github okay let me now cover some of the interesting features of github the most important feature of github is a pull request what pull request does is it allows you to collaborate with other projects in this diagram there is this github repo let's say this is some inventory management system right so this is the code for inventory management system it has bench of files and restore on github repo that's why I have shown it in the cloud and these people are kind of the owner of tag repo these are the people who write or who wrote that code ok now let's see this person acts he wants to make Jeanne in into this code for that he will just simply fork the code fork means just simply copying the code to his own private space so again this is in the cloud which is which means it is on github but it is a private repository which means it is this person's private space and he will sync up the code to his local computer he will make changes for example in this function this blue line is the chain that this guy made and he will push it to his own cloud after that once he is done making his changes and he tested his code and he's good to go he will sand or request to these people asking to pull his changes into the main repository so he will say ok hey guys I'm done with my change can you please pull my change into your repository and these people using our code review they will basically pull the question as a code review so they will do a code review and if it if it looks good to them then they will accept the pull request so that's how the code will get merged here now pull requests is becoming a central theme in open source world so an open source project anyone can contribute to the open source code so most of the open source projects are nowadays on github and the people who contribute to these projects using a poll request are that's why a github github is becoming very popular because it has such a good support for collaboration and open source projects okay there are some other useful features of github status issues issue tracking you know if you have a code base it will allow you to track issues or Viki which means it will allow you to write documentation on your code pulse which will give you different pulse and graph both will give you a different statistics and I will quickly show all these four features to you so I have this sample code repository which I found it through Google and on this repo has this issue list so if you click here so here you see your main code and then here you see all the issues so people will report all these issues here you can go to issue you can have a screenshot attached you can give a description reproduction condition and so on and then there there is a pull request feature which I just talked about by showing that diagram then there is a wiki so wiki is short of like a documentation so for my code base for this html5 boilerplate code base the owner of this repository has put all this nice documentation so you can click through wait you can read through all the documentation you can go to different website etcetera ah there is a pulse and graph feature which just shows you the pulse on your project so basically ongoing activity on your project so here on this project I have some 0 mod politicus 1 open pull request and so on and one issue so it is sort of like your dashboard and then there are graphs which will show you different statistic graph like contributors so these are the people who are contributing activity to this cool repo there are comments so on this day there were nine commits so there was highest amount of activity on this particular day ah there is core frequency Network member and so on so it has all this nice useful feature but the most important thing about github is this whole website itself it's a nice GUI graphical user interface that allows you to see your core and of various dimensions of various statistics on your code ok so these were basically the four other features that that were that there are important features for using github now there are some interesting facts about github it is very popular nowadays or there are 14 million users with 35 million code repositories some of the popular open source projects such as Linux kernel has been posted on github so if you go to this link github.com tour was less Linux you will see the code for Linux there I would say let's try this so let's go to github.com tour was Linux and I'm having some internet issue but it's eye graphics ok so this is the code base for Linux so you can actually see the Linux kernel core base here and if you feel like you want to contribute to this project then you can click on this button and form the repository and basically follow this diagram to make code changes and when you send back the pull request the owner of that repository will give you your code changes and it will possibly be merged if things look ok so see it's so powerful there is a Linux kernel and you can now contribute to Linux kernel just because of github ok so that is all about github thank

Original Description

Github is a website that allows you to store your code on cloud. It is backed by git version control system and comes with useful functionality such as pull request and that makes it very popular and widely used tool. In this github tutorial, I'm going to explain what is Github and how to use it. Do you want to learn technology from me? Check https://codebasics.io/ for my affordable video courses. Git Tutorial: https://www.youtube.com/watch?v=xAAmje1H9YM&list=PLeo1K3hjS3usJuxZZUBdjAcilgfQHkRzW Next Video: Git Tutorial 3: How To Install Git: https://www.youtube.com/watch?v=ON5GAXubt_4&list=PLeo1K3hjS3usJuxZZUBdjAcilgfQHkRzW&index=3 Machine Learning Tutorial With Python: https://www.youtube.com/watch?v=gmvvaobm7eQ&list=PLeo1K3hjS3uvCeTYTeyfe0-rN5r8zn9rw Website: https://codebasics.io/ Facebook: https://www.facebook.com/codebasicshub Twitter: https://twitter.com/codebasicshub
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from codebasics · codebasics · 45 of 60

1 Python Tutorial - 1. Install python on windows
Python Tutorial - 1. Install python on windows
codebasics
2 Python Tutorial - 2. Variables
Python Tutorial - 2. Variables
codebasics
3 Python Tutorial - 3. Numbers
Python Tutorial - 3. Numbers
codebasics
4 Python Tutorial - 4. Strings
Python Tutorial - 4. Strings
codebasics
5 Python Tutorial - 5. Lists
Python Tutorial - 5. Lists
codebasics
6 Python Tutorial - 6. Install PyCharm on Windows
Python Tutorial - 6. Install PyCharm on Windows
codebasics
7 PyCharm Tutorial - 7. Debug python code using PyCharm
PyCharm Tutorial - 7. Debug python code using PyCharm
codebasics
8 Python Tutorial -  8. If Statement
Python Tutorial - 8. If Statement
codebasics
9 Python Tutorial - 9. For loop
Python Tutorial - 9. For loop
codebasics
10 Python Tutorial -  10. Functions
Python Tutorial - 10. Functions
codebasics
11 Python Tutorial - 11. Dictionaries and Tuples
Python Tutorial - 11. Dictionaries and Tuples
codebasics
12 Python Tutorial - 12. Modules
Python Tutorial - 12. Modules
codebasics
13 Python Tutorial - 13. Reading/Writing Files
Python Tutorial - 13. Reading/Writing Files
codebasics
14 How to install Julia on Windows
How to install Julia on Windows
codebasics
15 Python Tutorial - 14. Working With JSON
Python Tutorial - 14. Working With JSON
codebasics
16 Julia Tutorial - 1. Variables
Julia Tutorial - 1. Variables
codebasics
17 Julia Tutorial - 2. Numbers
Julia Tutorial - 2. Numbers
codebasics
18 Python Tutorial - 15. if __name__ == "__main__"
Python Tutorial - 15. if __name__ == "__main__"
codebasics
19 Julia Tutorial - Why Should I Learn Julia Programming Language
Julia Tutorial - Why Should I Learn Julia Programming Language
codebasics
20 Python Tutorial  - 16. Exception Handling
Python Tutorial - 16. Exception Handling
codebasics
21 Julia Tutorial - 3. Complex and Rational Numbers
Julia Tutorial - 3. Complex and Rational Numbers
codebasics
22 Julia Tutorial - 4. Strings
Julia Tutorial - 4. Strings
codebasics
23 Python Tutorial -  17. Class and Objects
Python Tutorial - 17. Class and Objects
codebasics
24 Julia Tutorial - 5. Functions
Julia Tutorial - 5. Functions
codebasics
25 Julia Tutorial - 6. If Statement and Ternary Operator
Julia Tutorial - 6. If Statement and Ternary Operator
codebasics
26 Julia Tutorial - 7. For While Loop
Julia Tutorial - 7. For While Loop
codebasics
27 Python Tutorial  - 18. Inheritance
Python Tutorial - 18. Inheritance
codebasics
28 Julia Tutorial - 8. begin and (;) Compound Expressions
Julia Tutorial - 8. begin and (;) Compound Expressions
codebasics
29 Python Tutorial - 12.1 - Install Python Module (using pip)
Python Tutorial - 12.1 - Install Python Module (using pip)
codebasics
30 Julia Tutorial - 9. Tasks (a.k.a. Generators or Coroutines)
Julia Tutorial - 9. Tasks (a.k.a. Generators or Coroutines)
codebasics
31 Julia Tutorial - 10. Exception Handling
Julia Tutorial - 10. Exception Handling
codebasics
32 Python Tutorial  - 19. Multiple Inheritance
Python Tutorial - 19. Multiple Inheritance
codebasics
33 Python Tutorial - 20. Raise Exception And Finally
Python Tutorial - 20. Raise Exception And Finally
codebasics
34 Python Tutorial - 21. Iterators
Python Tutorial - 21. Iterators
codebasics
35 Python Tutorial - 22. Generators
Python Tutorial - 22. Generators
codebasics
36 Python Tutorial - 23. List Set Dict Comprehensions
Python Tutorial - 23. List Set Dict Comprehensions
codebasics
37 Python Tutorial - 24. Sets and Frozen Sets
Python Tutorial - 24. Sets and Frozen Sets
codebasics
38 Python Tutorial - 25. Command line argument processing using argparse
Python Tutorial - 25. Command line argument processing using argparse
codebasics
39 Debugging Tips - What is bug and debugging?
Debugging Tips - What is bug and debugging?
codebasics
40 Debugging Tips - Conditional Breakpoint
Debugging Tips - Conditional Breakpoint
codebasics
41 Debugging Tips - Watches and Call Stack
Debugging Tips - Watches and Call Stack
codebasics
42 Python Tutorial - 26. Multithreading - Introduction
Python Tutorial - 26. Multithreading - Introduction
codebasics
43 Git Tutorial 3:  How To Install Git
Git Tutorial 3: How To Install Git
codebasics
44 Git Tutorial 1: What is git / What is version control system?
Git Tutorial 1: What is git / What is version control system?
codebasics
Git Tutorial 2 : What is Github? | github tutorial
Git Tutorial 2 : What is Github? | github tutorial
codebasics
46 Git Tutorial 4: Basic Commands: add, commit, push
Git Tutorial 4: Basic Commands: add, commit, push
codebasics
47 Git Tutorial 5: Undoing/Reverting/Resetting code changes
Git Tutorial 5: Undoing/Reverting/Resetting code changes
codebasics
48 Git Tutorial 6: Branches (Create, Merge, Delete a branch)
Git Tutorial 6: Branches (Create, Merge, Delete a branch)
codebasics
49 Git Github Tutorial 10: What is Pull Request?
Git Github Tutorial 10: What is Pull Request?
codebasics
50 Git Tutorial 7: What is HEAD?
Git Tutorial 7: What is HEAD?
codebasics
51 Git Tutorial 9: Diff and Merge using meld
Git Tutorial 9: Diff and Merge using meld
codebasics
52 Difference between Multiprocessing and Multithreading
Difference between Multiprocessing and Multithreading
codebasics
53 Python Tutorial - 27. Multiprocessing Introduction
Python Tutorial - 27. Multiprocessing Introduction
codebasics
54 Python Tutorial - 28. Sharing Data Between Processes Using Array and Value
Python Tutorial - 28. Sharing Data Between Processes Using Array and Value
codebasics
55 Git Tutorial 8 - .gitignore file
Git Tutorial 8 - .gitignore file
codebasics
56 Python Tutorial - 29. Sharing Data Between Processes Using Multiprocessing Queue
Python Tutorial - 29. Sharing Data Between Processes Using Multiprocessing Queue
codebasics
57 Python Tutorial - 30. Multiprocessing Lock
Python Tutorial - 30. Multiprocessing Lock
codebasics
58 Python Tutorial - 31. Multiprocessing Pool (Map Reduce)
Python Tutorial - 31. Multiprocessing Pool (Map Reduce)
codebasics
59 What is code?
What is code?
codebasics
60 Python unit testing - pytest introduction
Python unit testing - pytest introduction
codebasics

Related AI Lessons

Up next
Learn Deep Learning by Hand (Beginner's Guide - Part 1)
Thu Vu
Watch →