Branching & Merging a Production Grade Project | Git Tutorials #16

แชร์
ฝัง
  • เผยแพร่เมื่อ 1 ก.พ. 2025

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

  • @Ash-ue8sk
    @Ash-ue8sk 4 ปีที่แล้ว +42

    Literally this man cares so much about his audience
    He has talked a hundreds time about vs code installation
    Which he could easily told to see in his other playlist🙏🏻

  • @XBEAST321
    @XBEAST321 2 ปีที่แล้ว +20

    Basic Commands:
    git status to see what's going on
    git init to make a git repository
    rm -rf .git to delete a git repository
    git add . to add all files in staging area
    git add --a to add all files in staging area
    git commit -m "Something" to do a commit
    git commit -a -m "Something" to do a direct commit without staging
    Modifying With Previous Commit Message:
    git commit ammend to modify previos commit message
    Removing File Commands:
    git rm -rf to remove a specific file
    git rm -rf . to remove all files
    git ignore basics:
    for example we're ignoring .log file
    error.log to ignore a specific file
    *.log to ignore all .log file
    dir/ to ignore a directory
    /dir/ to ignore a directory only in the parent folder
    if a file isn't ignoring by git ignore run this command
    git rm -cached
    Difference Checking Commands:
    git diff to check before and after difference in a specific file
    git diff . to check before and after difference in all files
    git diff --staged to check before and after difference in staged files
    Name Changing Commands:
    git mv to rename a file
    History Commands:
    git log to see a log in basic way
    git log -p to see a log in detail with before and after difference
    git log --pretty=short
    git log --pretty=full to see log in more detail with author name and commiter name
    git log --pretty=format to find formats go on this website "git-scm.com/docs/git-log"
    Rolling Back Commands:
    git checkout -- to replace a specific file with last commit
    git check -f to replace whole folder with last commit
    Remote Commands:
    git remote add origin "url" to add your github repository
    git remote -v to see push and fetch link of your repository
    SSH Key Generating:
    ssh-keygen -t rsa -b 4096 -C "your_email@example.com" or "your pc name"
    eval "$(ssh-agent -s)" Run This Command To Start SSH Agent
    ssh-add ~/.ssh/id_rsa
    tail ~/.ssh/id_rsa.pub
    Push Commands"
    git push -u origin master to push a your repository on github
    Alias Commands:
    git config --global alias.(Your Command) (Original Command) to make your custom commands
    git config --global alias.st status example:
    Discard Changes or Roll Back To Last Commit Commands:
    git restore to discard all changes in a specific file
    git restore . to discard all changes in the whole folder
    Branching Commands:
    git checkout -b (your branch name) to make a new branch
    git checkout (your branch name) to switch your branches
    git branch to show all branches in the repository

  • @ahsanalikhan7731
    @ahsanalikhan7731 3 ปีที่แล้ว +34

    48)To merge branch , switch to parent branch:
    $ git merge
    **note : VS CODE gives option to select and resolve merge conflicts **

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

      Thanks for the TL;DR 's

  • @karamjeetsinghpadam507
    @karamjeetsinghpadam507 4 ปีที่แล้ว +9

    very good demonstration especially liked it since its explained in our common language.
    Strong hands to you Harry.
    your videos is a blessing for many students and professionals alike.

  • @HirvaMehta01
    @HirvaMehta01 3 ปีที่แล้ว

    bahut aabhar isko hindi mein banane ke liye..meine kai sourses dekhe but is playlist jaisa mujhe koi nai sikha paya. git ko bahot saral bana diya aapne harry

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

    Harry bhai is india's biggest youtuber in computer science engineering

  • @whatwhat3435
    @whatwhat3435 5 ปีที่แล้ว +6

    Twinkle Twinkle Little star
    Harry bhai is superstar..
    love from Nepal bhai

  • @mustafakhan-u7e8e
    @mustafakhan-u7e8e ปีที่แล้ว

    Harry bhai I just wanna say you are amazing. cuz the way you care it's extraordinary

  • @PANKAJKUMAR-fe8zn
    @PANKAJKUMAR-fe8zn 4 ปีที่แล้ว

    Harry bhaiya maja aa gya...when I realized the power of git...superb software by Linus torwald...hats off to him and thank you for easy explanation

  • @shubhamaajmane574
    @shubhamaajmane574 4 ปีที่แล้ว +3

    Very well explained. The examples you used to explain the concepts were very good.

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

    Btw I always deliberately waiting for your videos sir....thanks for the great learning support....

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

    Nice explanation of simple merge.. hope to see complex merge and without VS in next lecture

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

    Good job Harry Bhaiiiii❤️❤️❤️❤️❤️

  • @HarmonicProgrammer21
    @HarmonicProgrammer21 3 ปีที่แล้ว +2

    Harry bhaia merge karne ke baad directly merge ho gaya kuchh nahi poochha. Vs code ko bhi pata nahi chala ki kuchh change hua hai. Phir baad me pata chala ki jabtak dono me hi changes na kiya jaye tabtak koi conflict nahi aata. Phir jake video aage karke dekha to aapne bhi wahi bataya tha. 😁😁

  • @HareshPrajapati-hk4or
    @HareshPrajapati-hk4or 4 ปีที่แล้ว +1

    Thank you soooo much to learn us....with such a good examples and happily

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

    You are a fantastic teacher. Thank you.

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

    Thanks for the information provided.
    But i think that the below points are missing:
    Private repository
    Pull command
    Host your own git repo on server
    How to rollback to previous commits, etc
    How to collaborate actually on git with practicals?

  • @mrnobody7451
    @mrnobody7451 5 ปีที่แล้ว

    Loved your tutorials very much...Love your teaching style..

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

    Have this king👑🤝

  • @068_gauravchakraborty
    @068_gauravchakraborty 3 ปีที่แล้ว

    Thxxxxxxx a lot harry bhai❤ love you 3000💗

  • @ginaniahmad
    @ginaniahmad 3 ปีที่แล้ว

    Thank you so much sir for explaining branching and merging on git !

  • @SaurabhVerma-gr2si
    @SaurabhVerma-gr2si 2 ปีที่แล้ว

    Harry Brother you are Awesome

  • @akashkhandelwal-altruistic5363
    @akashkhandelwal-altruistic5363 4 ปีที่แล้ว

    Awesome harry bhai!!

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

    you are amazing Sir!

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

    Git merge after 14:30
    Don't skip,
    know about all branches and project

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

    Very nice tutorial

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

    Present sir ♥️😍♥️♥️😍♥️😍♥️😍

  • @yashghanshani5790
    @yashghanshani5790 3 ปีที่แล้ว

    harry bhai thanks, plzz.. make some videos on terraform

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

    Very helpful content

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

    Comment for Just increasing comments on this video.
    If someone asks me who teaches you GIT and where you learn GIT then I will definitely say #CodeWithHarry 🤩
    Thank You so much harry Bhai. 🤟

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

    Harry bhai Visual code studio k features aur functions per bhi aik ya do videos bana den.

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

    Thank you mere bhai

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

    Bhai node.js aur express.js pe bhi video banao.

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

    amazing videos bro.

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

    thanks please make a DevOps video

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

  • @iamdanyaal
    @iamdanyaal 3 ปีที่แล้ว

    Thank You Sir

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

    thank YOU bhai

  • @snehel1586
    @snehel1586 3 ปีที่แล้ว

    haary bhai in his text files whenever he tries to explain any git command---"sdsdsdfsdf"

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

    Could you please make sure the difference between rebase and merge ?....

  • @abhijitsarkar7456
    @abhijitsarkar7456 4 ปีที่แล้ว

    Thank You so Much Sir

  • @mrnobody7451
    @mrnobody7451 5 ปีที่แล้ว

    Sir, please make tutuoials on The Mean Stack

  • @opalzindagi3060
    @opalzindagi3060 3 ปีที่แล้ว

    Best best unless word to say Harry

  • @anujsingh-zf3ph
    @anujsingh-zf3ph 3 ปีที่แล้ว

    Sir, please git rebase ka video banaye.
    Thanks.

  • @abdullaansari9852
    @abdullaansari9852 5 ปีที่แล้ว

    Social Media website in Django in one Video kb aayegi Harry bhai ??????????

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

    HI harry bhai.. yes this VsCode is good for managing and correcting conflicts.. but what about the eclipse or intellij idea IDEs? how we select incoming changes or current changes?

  • @ghanabambale1003
    @ghanabambale1003 5 ปีที่แล้ว

    helpful video

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

    vc code bhi khta hoga harry bhai kitni baar download kroge ab to maan jao 🙃

  • @shwetanshuchauhan1994
    @shwetanshuchauhan1994 5 ปีที่แล้ว

    Bhai plz simple way me ai kaise bnae plz es pe vedio bno ek aur

  • @lovetocode9266
    @lovetocode9266 3 ปีที่แล้ว

    ❤️❤️

  • @AliHussnain-x2v
    @AliHussnain-x2v ปีที่แล้ว +1

    yar please app apni play list co side pa rak ka parhaya kro

  • @deepaktiwari-ry9yo
    @deepaktiwari-ry9yo 5 ปีที่แล้ว

    ML tutorial pr video add kro harry bhai.. ..

  • @humanbeing9106
    @humanbeing9106 5 ปีที่แล้ว

    harry bhai koi php me ik complete tutorials banado or ya koi book bata do

  • @3DHighBassSongs
    @3DHighBassSongs 5 ปีที่แล้ว

    Nice

  • @ritiktyagi8043
    @ritiktyagi8043 5 ปีที่แล้ว

    Sir your videos very helfful.sir I requested you make a videos mvvm architecture in android.

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

    In javis its showing win32com. Cilent not defined and in problem its shows sr has no member

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

    Harry bhaia git repository delete karne par wo git hub se bhi delete ho jayegi kya??

  • @shwetapandey2406
    @shwetapandey2406 5 ปีที่แล้ว

    👌👌👍

  • @mohammadrehankhan5675
    @mohammadrehankhan5675 4 ปีที่แล้ว

    Sir can you please tell where you are clicking at 6:27 because I am unable to open navbar home page

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

    ye problem a rhi
    fatal: Unable to create 'E:/End to end projects/End-to-End-House-Price-prediction-ML-project/.git/index.lock': File exists.
    Another git process seems to be running in this repository, e.g.
    an editor opened by 'git commit'. Please make sure all processes
    are terminated then try again. If it still fails, a git process may have crashed in this repository earlier:
    remove the file manually to continue.

  • @ahmeedev
    @ahmeedev 4 ปีที่แล้ว

  • @ShahidKhan-he5gv
    @ShahidKhan-he5gv 5 ปีที่แล้ว

    good morning harry bahii

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

    mere isme merge conflict nhi aaya. "Merged made by recursive strategy"
    aaya

  • @asifpervezpolok2243
    @asifpervezpolok2243 3 ปีที่แล้ว

    Harry vai i have a doubt, is rollback means switching to the previous Branch from the current branch?

  • @BRAJESHKUMAR-lz4mw
    @BRAJESHKUMAR-lz4mw 5 ปีที่แล้ว

    In Django project. what is right place for placing templates
    1. inside apps
    2. in the root folder
    if I place templates folder inside apps and for each template we have some static file that may be common for other apps.
    Therefore we may need to put a single static file like a bootstrap file in multiple places. Which also takes spaces. So guide me on which one is right.
    inside root if I made the template and make folder with apps name. Is it not true?
    We can reuse our base.html for different apps.
    but if i put template inside apps. We need to create separate base.html for all apps.
    I am little bit confused.
    so, please guide me.

  • @faiyazahmad21
    @faiyazahmad21 5 ปีที่แล้ว

    Bhaiya hame kon SA devloper Banna chahiye Abhi ke hisab se kon SA language Sukhna chahiye jiska trade chalega market me h

  • @neerajtangariya4067
    @neerajtangariya4067 5 ปีที่แล้ว

    agr hame branch ko push krna ho to kaise kar skte hai...?

  • @rishikeshpandey1235
    @rishikeshpandey1235 4 ปีที่แล้ว

    bhai if i want to go to my intial commit then what command i need to write to go to my intial commit or any other commit
    plz tell me

  • @jayprajapati9
    @jayprajapati9 5 ปีที่แล้ว

    Gajodhar singh cool

  • @akhil1273
    @akhil1273 4 ปีที่แล้ว

    bhai VS code mein open with live server karne pe live server start toh dikha rha hai but browser mein open nhi ho rha hai

  • @sagaciouselevate
    @sagaciouselevate 4 ปีที่แล้ว

    Please help on this issue ...
    ! [remote rejected] master -> master (Working directory has unstaged changes)
    error: failed to push some refs to......

  • @harshitraj8409
    @harshitraj8409 5 ปีที่แล้ว

    How i can contribute to other person repo??

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

    android par videos banaye

  • @ArbazKhan-oc6rs
    @ArbazKhan-oc6rs 5 ปีที่แล้ว

    harry bhai Pyinstaller exe bna raha he lekin wo work nahi kr rahi plz help me

  • @abdullaansari9852
    @abdullaansari9852 5 ปีที่แล้ว

    Social media in django ?????????? One video me ??????

  • @jayprajapati9
    @jayprajapati9 5 ปีที่แล้ว

    #GajjuGang

  • @Praveenkumar-wv8qy
    @Praveenkumar-wv8qy 5 ปีที่แล้ว

    #machinelearning 🙄 please

  • @deepaktiwari-ry9yo
    @deepaktiwari-ry9yo 5 ปีที่แล้ว

    Harry bhai aap reply nhi kr rhe ho...

  • @MrPeace-dm7uk
    @MrPeace-dm7uk 4 ปีที่แล้ว

    bhai ye wala video bekar ho gya kha git k topic se bootstrap, video editor

  • @nikhilraj1842
    @nikhilraj1842 5 ปีที่แล้ว

    Why you are late

  • @namanplayz2168
    @namanplayz2168 5 ปีที่แล้ว

    Bahi mera help kado plzzzzzzzzzzzzzzzz computer project ka liya

  • @RohanDasRD
    @RohanDasRD 5 ปีที่แล้ว

    First

  • @vinodkotiya
    @vinodkotiya 3 ปีที่แล้ว

    13:50 ye nai ki gandh faila rakhi ho.. lol

  • @jayprajapati9
    @jayprajapati9 5 ปีที่แล้ว

    Gajodhar singh

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

    best tutorial

  • @61_shivangbhardwaj46
    @61_shivangbhardwaj46 3 ปีที่แล้ว

    Thank you so much sir😊