Git Tutorial 1: What is git / What is version control system?
Key Takeaways
Git is a version control system that allows storing code on the cloud and enables multiple people to work on the same code base, solving problems such as hard disk failure, collaboration, and version tracking. Git is a distributed version control system with a maintained version history on both local computers and the cloud, and is powered by GitHub, the most popular website to host code.
Full Transcript
hello friends welcome to code basics coding tutorial in this tutorial we are going to see what is git when you ask this question to anyone the usual answer you get is git is a version control system but hey what is version control system let's look at the problems that we encounter when you don't use version control system so let's say you have a computer and you are writing code on that computer so the code files are saved locally on that computer's hard disk but what if your hard disk crashes or your computer has some kind of problem in that case whatever code you have written is lost second problem is if multiple people want to contribute to that code then they cannot do it if it is on one computer even if it is let's say these two people have their own computers and if they want to work on the same code how do they do that they have to transfer files using a pen drive from one computer to another and they have to do code merge manually which is quite cumbersome third problem you have is there is no tracking of versions so let's say you have your code it is working fine and you are making one more enhancements or you are fixing some bugs so you made some changes and let's say it doesn't look good so you want to go to previous good version of your code but there is no way if you have your code on your computer because the simple file system doesn't give you a version tracking so you have all these different issues especially when you're working on a bigger code base or a sample project you will encounter these issues again and again version control system solves all these problems let's look at all these problems one by one and see how vcs or version control system solves these issues so our first problem was hard disk failure inversion control system the code is saved on cloud cloud is basically some remote machine which is much more stable than your local computer and it is guaranteed that you will never lose your code from cloud so you store your code on the cloud and then you sync the files to your local computer that way if you have hardware problem or some computer breakdown you can always get your code back from the cloud so problem number one fixed problem number two multiple people contributing to the same code base again you have your golden copy of your code on the cloud so that these two people can work on their individual computers and then whenever they're ready uh to push their changes they will push it to a cloud now let's say if they're working on a same function let's say here there is a function python function def sum and if they're they both are making uh changes to the same function then there are merge tools available which can help you resolve the conflict so merging is pretty easy these two people can work on their own without worrying about anything so it's it's very beautiful how uh vcs solves these issues or of collaboration problem number theo three was uh version tracking in version control system uh you have all of your changes tracked down through different versions of the same file so let's say you have this file called foo dot py which has some uh a function called sum and let's say right now the function looks like this it just returns a plus b but if you make some changes later on and if you save it it will be saved as version number two i was number three and so on so at any given point of time you feel like i i want to go back to the previous old version which was working okay you can do it very easily now there are different version control systems available in the market for example git mercurial subversion etc but git is by far the best version control system i will tell you two reasons number one is it is a distributed version control system where the version history is maintained on your local computer as well as it is maintained on the cloud so let's say you are in some area where you don't have internet internet connection you still have an ability to try to track the versions uh and whenever you have intercon internet connection you can sync it up with your uh remote which is your copy in the cloud the second biggest benefit of using it is github the most popular website to host code is powered by get that was all about git thank you for watching
Original Description
Git is a version control system that allow you to store your code or program on cloud. It also offers features that makes it easy for multiple people to work on same code base. Git today is the most popular version control system and has already surpassed other VCS systems such as SVN.
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 2 : What is Github?: https://www.youtube.com/watch?v=Bg9IAquDsDg&list=PLeo1K3hjS3usJuxZZUBdjAcilgfQHkRzW&index=2
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
Playlist
Uploads from codebasics · codebasics · 44 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
▶
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Python Tutorial - 1. Install python on windows
codebasics
Python Tutorial - 2. Variables
codebasics
Python Tutorial - 3. Numbers
codebasics
Python Tutorial - 4. Strings
codebasics
Python Tutorial - 5. Lists
codebasics
Python Tutorial - 6. Install PyCharm on Windows
codebasics
PyCharm Tutorial - 7. Debug python code using PyCharm
codebasics
Python Tutorial - 8. If Statement
codebasics
Python Tutorial - 9. For loop
codebasics
Python Tutorial - 10. Functions
codebasics
Python Tutorial - 11. Dictionaries and Tuples
codebasics
Python Tutorial - 12. Modules
codebasics
Python Tutorial - 13. Reading/Writing Files
codebasics
How to install Julia on Windows
codebasics
Python Tutorial - 14. Working With JSON
codebasics
Julia Tutorial - 1. Variables
codebasics
Julia Tutorial - 2. Numbers
codebasics
Python Tutorial - 15. if __name__ == "__main__"
codebasics
Julia Tutorial - Why Should I Learn Julia Programming Language
codebasics
Python Tutorial - 16. Exception Handling
codebasics
Julia Tutorial - 3. Complex and Rational Numbers
codebasics
Julia Tutorial - 4. Strings
codebasics
Python Tutorial - 17. Class and Objects
codebasics
Julia Tutorial - 5. Functions
codebasics
Julia Tutorial - 6. If Statement and Ternary Operator
codebasics
Julia Tutorial - 7. For While Loop
codebasics
Python Tutorial - 18. Inheritance
codebasics
Julia Tutorial - 8. begin and (;) Compound Expressions
codebasics
Python Tutorial - 12.1 - Install Python Module (using pip)
codebasics
Julia Tutorial - 9. Tasks (a.k.a. Generators or Coroutines)
codebasics
Julia Tutorial - 10. Exception Handling
codebasics
Python Tutorial - 19. Multiple Inheritance
codebasics
Python Tutorial - 20. Raise Exception And Finally
codebasics
Python Tutorial - 21. Iterators
codebasics
Python Tutorial - 22. Generators
codebasics
Python Tutorial - 23. List Set Dict Comprehensions
codebasics
Python Tutorial - 24. Sets and Frozen Sets
codebasics
Python Tutorial - 25. Command line argument processing using argparse
codebasics
Debugging Tips - What is bug and debugging?
codebasics
Debugging Tips - Conditional Breakpoint
codebasics
Debugging Tips - Watches and Call Stack
codebasics
Python Tutorial - 26. Multithreading - Introduction
codebasics
Git Tutorial 3: How To Install Git
codebasics
Git Tutorial 1: What is git / What is version control system?
codebasics
Git Tutorial 2 : What is Github? | github tutorial
codebasics
Git Tutorial 4: Basic Commands: add, commit, push
codebasics
Git Tutorial 5: Undoing/Reverting/Resetting code changes
codebasics
Git Tutorial 6: Branches (Create, Merge, Delete a branch)
codebasics
Git Github Tutorial 10: What is Pull Request?
codebasics
Git Tutorial 7: What is HEAD?
codebasics
Git Tutorial 9: Diff and Merge using meld
codebasics
Difference between Multiprocessing and Multithreading
codebasics
Python Tutorial - 27. Multiprocessing Introduction
codebasics
Python Tutorial - 28. Sharing Data Between Processes Using Array and Value
codebasics
Git Tutorial 8 - .gitignore file
codebasics
Python Tutorial - 29. Sharing Data Between Processes Using Multiprocessing Queue
codebasics
Python Tutorial - 30. Multiprocessing Lock
codebasics
Python Tutorial - 31. Multiprocessing Pool (Map Reduce)
codebasics
What is code?
codebasics
Python unit testing - pytest introduction
codebasics
More on: Tool Use & Function Calling
View skill →Related Reads
📰
📰
📰
📰
Docker Swarm HA Architecture: Understanding Leader, Managers, and Worker Nodes
Medium · DevOps
Stop Wasting Days on Dev Setup: How We Automated Our Microservices Environment for Every Developer
Dev.to · Mehdi Hassan Jony
The sensor was fine. My safety gate was the thing that went blind.
Dev.to · ilya mozerov
Install SonarQube 26.9 on Ubuntu EC2 with PostgreSQL 18
Medium · DevOps
🎓
Tutor Explanation
DeepCamp AI