Git Branches - Creating and Managing Branches in git Using Git Branch, Git merge and Git Checkout
ฝัง
- เผยแพร่เมื่อ 7 ก.พ. 2025
- Welcome to the video series on git, a source control a.k.a Version control system or VCS
Git is one of the widely used and powerful distributed version control system. It was originally created in 2005 by Linux Community and Linus Torvalds (The Creator of Linux). Git has grown a lot after that and github (www.github.com) is a preferred repository for storing, managing and distributing open source code.
This is the 3rd video of git series, where we're understanding the concept of branching in git. You may consider this as branching git tutorial for beginner because it's a simplest possible way to understand the concept of branhing in git. If you're totally new to git, I'll recommend you to go ahead and see the introductory video of git series @ • Introduction to Git - ...
In this git tutorial video, I'm starting with the purpose and need for the branching in general before diving down to how to create branches in git. I'm using my own github page to demonstrate the same, because in all probability you'll end up working with a remote server or something similar to github. Here are the list of commands I'm explaining in this video
git branch - The command to create a new branch
git checkout - Command to go to a particular branch
git log - Command to see the HEAD status in the git
git remote - Command to set and check the remote server e.g. github
git merge - Command to merge the changes between multiple branches
git commit - Command to commit the changes to the local branch which was cloned using git clone
#git #github #branch #vcs #versioncontrol
-----------------------------------------------------------------------------------------------------------------------
Hi I am Daksh Deepak K Gupta (nickname & Preferred:- Daksh). I am a software developer and creating software since 1999. During the course of my career I've worked as a software Developer, Architect as well as Chief Technology Office.
I started this channel to share my knowledge and understanding of Software Development which I believe will help people in writing better and quality code. This channel covers broad set of Computer Science and Software Engineering topics including but not limited to Programming.
Here is the kind of contents you can expect from my TH-cam Channel i.e. both existing and upcoming
1. Data Structures and Big O Notations, Algorithms and Algorithm complexity
2. C++ programming (latest specifications C++17 and C++20 ) tutorial. Learn How to create high performance system applications using one of the oldest and still relevant programming Language.
3. Learn modern Python Programming (Python 3.x) and understand how python is used for Data Science, Data Analytics and Machine Learning.
4. Learn Python libraries like NumPy, Scipy, Scikit-learn, Pandas and more
5. Learn JAVA, one of the widely used and most versatile Programming Language. Explore Java Libraries like Spring and SpringBoot
6. Learn JavaScript and understand how JavaScript can be used for Functional Programming as well as for Reactive Functional Programming. Explore JavaScript libraries like ReactJs, BaeconJS, Mocha and ChaiJS
7. Learn Golang, an extremely fast, microservices ready programming language with goroutines
8. Systems Programming including details about writing memory and multi Core CPU efficient codes.
9. Understand Machine learning and Neural Networks and create prediction engines. Lean Languages, tool, and libraries for the same
10. Understand and explore Neural Network with PyTorch, Keras, OpenCV and TensorFlow
11. How to Create cross platform mobile apps
12. Explore SQL and NoSQL databases like PostgreSQL, MongoDB, Redis, Apache Spark, neo4j and Apache Cassandra
6. Learn source with git, which is one of the most widely used decentralized source control. Learn more about branches merge and commit
7. Learn about persistent nosql databases like mongodb using my mongodb tutorial as well as in memory nosql databases like redis using my redis tutorial. you'll also learn about using redis nodejs
8. Understand the concept of handling large data e.g. Big Data
9. Learn about graph theory and graph database
Please subscribe to my TH-cam channel to get regular updates www.youtube.co...
I was looking for a perfect TH-cam channel for a simplified and easy understanding and have seen more than 50 youtube channels and finally happy that i found your channel sir. Thank You so much you filled confidence in me. I am happy to learn.
Thank you so much for your kind comment 🙏
Nice vid! Some more information for the git newbies out there:
1. HEAD is a shortcut for "the commit this repo is currently checked out to"
2. A git branch is just a pointer to a single commit that can move when actions (merge, checkout, reset, rebase) are taken
3. Branches in git are largely ephemeral -- where they point changes over time and there's no precise record of where any branch has pointed in the past. This is largely not a problem because the true history of the repo lies within commits and their parental relationships.
4. At 10:00, the merge of develop into master is fast-forward, so master just moves from beca713 to 40c841c without the creation of a merge commit. Fast-forward merges happen when there's no divergence in code between the branches being merged. This is atypical (and often not allowed) for merge/pull request workflows.
Thanks for your valuable insights 🙏🙏🙏
the way you explained everything in a simplified manner is amazing. thank you for this. I checked out your channel, you should do more courses on programming languages either here or on udemy. lots of people like me will really appreciate it.
Thank you so much for your valuable suggestions .. will definitely do what I can 🙏
Thank you so much sir. I have learned a lot and I think I am ready for our exam. You are a blessing❤
Very crisp and super useful video. Very good and simple explanation. Thanks a lot!
Thank you so much for your kind words 🙏
Thank you sir! Very simplified way of explaining
Thank you so much 🙏
Excellent series of GitHub
I am a student of UWA n your videos is very helpful for learn my concept ty
Thank you so much 🙏
Thank you a lot Sir, you simplified the concept and it's ver clear, thans again
Thanks for your comment 🙏
It very wonderful platform to learn many things thanks lot sir ❤❤
Thank you 🙏
Simple and great explanation.
Thanks 🙏
Can't stop watching
Thank You very much
Thanks a lot for taking time out to write the comment.. Thanks again 🙏
@@Cognitive-Programmer can u do further videos on git
Thank you for reaching out.. will definitely consider 🙏
Excellent sir...simple and effective
Thank you so much for your comment
I like your pace.. Thank you for this informative video
Thanks for your comment
Very good explanation!
Thanks for your comment
we can also use git switch to switch into different branch.
Your video helped me alot
Thank You...If we were to rate videos, I would have given you 5 stars but for now, it is a thumbs up
👍
Thank you so much for your kind words 🙏
bro you're good. Really good
Thank you so much for your comment
This was epic.
Thanks for your comment 🙏
Sir , your explanation skills are very nice 💚💚, i clearly understood, please sir can you make some more videos on git..
Thanks for your comment & valuable suggestion 🙏
thanku so much sir great video understandeble very much
Thanks you so much for watching my video 🙏
Thank you sir. I love your teaching. It is so simplified. Please i want to learn Python. Put me through.
Thank you so much for your appreciation. Thanks a lot. I do have a python playlist, have a look th-cam.com/play/PL_dsdStdDXbqK2e5knrsErF3VpRK3fyO5.html
All the best for your learning.
Thanks 🙏
good video to learn heard things in simple way
thank you
Thank you so much 🙏
Dear Sir, How do we delete barnch simultaneously when we push it git ?
Appreciate your efforts sir but why we need to do merge instead we can do push easily.
Many people might be doing the changes simultaneously. hence we need to merge, Hope it helps. Thanks for your comment 🙏
If we take pull before pushing is enough than merging, is not it?
Hi
This may work if you have small co located teams.. but in the larger systems you may not able to control when someone does the checking
Hope it helps
Thanks
If you get time, could you make a video that shows difference between branch merging vs pull and push.
pls i want you to make a video on flutter_bloc package pls
Hican u pls make video on merge and rebase
Thanks for your comment and valuable suggestion 🙏
Yourexplanatuon is to ood