Git Tutorial 1: What is git / What is version control system?

codebasics · Beginner ·☁️ DevOps & Cloud ·10y ago

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
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from codebasics · codebasics · 44 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
Git Tutorial 1: What is git / What is version control system?
Git Tutorial 1: What is git / What is version control system?
codebasics
45 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

This video introduces Git as a version control system, explaining its benefits and how it solves common problems in software development, such as hard disk failure, collaboration, and version tracking. Viewers can learn how to use Git to store code on the cloud, collaborate with others, and track changes to their code.

Key Takeaways
  1. Install Git on your local computer
  2. Create a GitHub account and set up a repository
  3. Add files to your repository and commit changes
  4. Use Git to collaborate with others on a code base
  5. Use Git to track changes to your code
💡 Git is a powerful tool for version control and collaboration, and is widely used in the software development industry.

Related Reads

📰
Day 9 of our 90-Day Journey: Cracking the GenAI Interview: Linux Process Management and Memory…
Master Linux process management and memory for GenAI workloads to ace your interview
Medium · DevOps
📰
Docker Swarm HA Architecture: Understanding Leader, Managers, and Worker Nodes
Learn to configure a highly available Docker Swarm cluster with leader, manager, and worker nodes for scalable and fault-tolerant container orchestration
Medium · DevOps
📰
Stop Wasting Days on Dev Setup: How We Automated Our Microservices Environment for Every Developer
Automate microservices environment setup to reduce onboarding time and eliminate configuration headaches
Dev.to · Mehdi Hassan Jony
📰
The sensor was fine. My safety gate was the thing that went blind.
Learn how to troubleshoot and identify issues in monitoring tools and safety gates
Dev.to · ilya mozerov
Up next
Hostinger Web Hosting Review 2026: Features, Pros & Cons 🔥
DroidCrunch
Watch →