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...

ความคิดเห็น • 54

  • @chethannv2.0
    @chethannv2.0 10 หลายเดือนก่อน +2

    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.

    • @Cognitive-Programmer
      @Cognitive-Programmer  9 หลายเดือนก่อน

      Thank you so much for your kind comment 🙏

  • @DanGitschooldude
    @DanGitschooldude 4 ปีที่แล้ว +5

    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.

  • @abhish3kkumar
    @abhish3kkumar หลายเดือนก่อน +1

    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.

    • @Cognitive-Programmer
      @Cognitive-Programmer  หลายเดือนก่อน

      Thank you so much for your valuable suggestions .. will definitely do what I can 🙏

  • @arkaneamper6370
    @arkaneamper6370 2 หลายเดือนก่อน

    Thank you so much sir. I have learned a lot and I think I am ready for our exam. You are a blessing❤

  • @pradeepmca
    @pradeepmca 7 หลายเดือนก่อน

    Very crisp and super useful video. Very good and simple explanation. Thanks a lot!

  • @swathivenkatesh7761
    @swathivenkatesh7761 ปีที่แล้ว +1

    Thank you sir! Very simplified way of explaining

  • @divya276
    @divya276 ปีที่แล้ว

    Excellent series of GitHub
    I am a student of UWA n your videos is very helpful for learn my concept ty

  • @zakiasmaa6834
    @zakiasmaa6834 5 หลายเดือนก่อน +1

    Thank you a lot Sir, you simplified the concept and it's ver clear, thans again

  • @amarkallappa8057
    @amarkallappa8057 6 หลายเดือนก่อน +1

    It very wonderful platform to learn many things thanks lot sir ❤❤

  • @SoumyadeepBasu-qy3qk
    @SoumyadeepBasu-qy3qk 3 หลายเดือนก่อน

    Simple and great explanation.

  • @terzuxtech
    @terzuxtech 2 ปีที่แล้ว

    Can't stop watching
    Thank You very much

    • @Cognitive-Programmer
      @Cognitive-Programmer  2 ปีที่แล้ว

      Thanks a lot for taking time out to write the comment.. Thanks again 🙏

    • @Dileepkumar-es6rm
      @Dileepkumar-es6rm 2 ปีที่แล้ว

      @@Cognitive-Programmer can u do further videos on git

    • @Cognitive-Programmer
      @Cognitive-Programmer  2 ปีที่แล้ว

      Thank you for reaching out.. will definitely consider 🙏

  • @NirajNirala-e3o
    @NirajNirala-e3o ปีที่แล้ว

    Excellent sir...simple and effective

  • @sameerkumar1884
    @sameerkumar1884 2 ปีที่แล้ว

    I like your pace.. Thank you for this informative video

  • @lyricsque2240
    @lyricsque2240 ปีที่แล้ว

    Very good explanation!

  • @saikrishna12232
    @saikrishna12232 ปีที่แล้ว

    we can also use git switch to switch into different branch.

  • @terzuxtech
    @terzuxtech 2 ปีที่แล้ว +1

    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
    👍

  • @arushsingh5590
    @arushsingh5590 ปีที่แล้ว

    bro you're good. Really good

  • @angelcastaneda4023
    @angelcastaneda4023 ปีที่แล้ว

    This was epic.

  • @sirigidivasu3567
    @sirigidivasu3567 2 ปีที่แล้ว +1

    Sir , your explanation skills are very nice 💚💚, i clearly understood, please sir can you make some more videos on git..

  • @anandgomaskar2210
    @anandgomaskar2210 ปีที่แล้ว

    thanku so much sir great video understandeble very much

  • @joshuaafolabi80
    @joshuaafolabi80 ปีที่แล้ว

    Thank you sir. I love your teaching. It is so simplified. Please i want to learn Python. Put me through.

    • @Cognitive-Programmer
      @Cognitive-Programmer  ปีที่แล้ว

      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 🙏

  • @mondemlanshmi
    @mondemlanshmi ปีที่แล้ว

    good video to learn heard things in simple way
    thank you

  • @sameerkumar1884
    @sameerkumar1884 2 ปีที่แล้ว

    Dear Sir, How do we delete barnch simultaneously when we push it git ?

  • @MyCodeBytez
    @MyCodeBytez 11 หลายเดือนก่อน

    Appreciate your efforts sir but why we need to do merge instead we can do push easily.

    • @Cognitive-Programmer
      @Cognitive-Programmer  11 หลายเดือนก่อน

      Many people might be doing the changes simultaneously. hence we need to merge, Hope it helps. Thanks for your comment 🙏

    • @MyCodeBytez
      @MyCodeBytez 11 หลายเดือนก่อน

      If we take pull before pushing is enough than merging, is not it?

    • @Cognitive-Programmer
      @Cognitive-Programmer  11 หลายเดือนก่อน

      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

    • @MyCodeBytez
      @MyCodeBytez 11 หลายเดือนก่อน

      If you get time, could you make a video that shows difference between branch merging vs pull and push.

  • @terzuxtech
    @terzuxtech 2 ปีที่แล้ว

    pls i want you to make a video on flutter_bloc package pls

  • @sanskritisinghrathore3022
    @sanskritisinghrathore3022 2 ปีที่แล้ว

    Hican u pls make video on merge and rebase

  • @sanskritisinghrathore3022
    @sanskritisinghrathore3022 2 ปีที่แล้ว

    Yourexplanatuon is to ood