How to create a new branch on GitHub // Commit & Push

Поділитися
Вставка
  • Опубліковано 31 лип 2024
  • ►► Establish a Well-Structured Data Warehouse for Your Small Team In 90 Days (Free Guide) → www.kahandatasolutions.com/guide
    If you are planning on working with GitHub, you need to understand branches. In this video, we will review the process of creating a new branch, adding a new file, committing the new change and then finally pushing the branch to out GitHub repository.
    Branches allow you to develop features, fix bugs, or safely experiment with new ideas in a contained area of your repository.
    Use a branch to isolate development work without affecting other branches in the repository. Each repository has one default branch, and can have multiple other branches. You can merge a branch into another branch using a pull request.
    Timestamps:
    0:00 - Intro
    0:13 Review Command Options
    1:17 Create a New Branch
    3:17 Add & Commit Changes
    6:30 Push Changes to GitHub
    8:03 Closing
    Title & Tags:
    Create a New Branch | GitHub Branching | Commit & Push Changes | GitHub Tutorial
    #kahandatasolutions #github #dataengineering

КОМЕНТАРІ • 155

  • @KahanDataSolutions
    @KahanDataSolutions  2 роки тому +7

    ►► Establish a Well-Structured Data Warehouse for Your Small Team In 90 Days (Free Guide) → www.kahandatasolutions.com/guide

    • @johnpulwers680
      @johnpulwers680 2 роки тому

      Will these commands also work with GitLab?

  • @rondevcode
    @rondevcode Рік тому +7

    This video is straight to the point and very clear on how to commit changes to Github. I watched several other videos and for some reason I couldn't grasped the concept. Thank you.

  • @StephanieMitchell-hv3qh
    @StephanieMitchell-hv3qh Рік тому +1

    This video is absolutely a life saver! If you just take the few minutes to watch it, Kahan helps you easily solve the mysteries of git and branches so quickly.
    Thank you!

  • @vatsalanundloll3878
    @vatsalanundloll3878 Рік тому

    Thank you so much, that was by far one of the best videos I've seen on github.

  • @matthewhawkins3697
    @matthewhawkins3697 2 роки тому +19

    This was a perfect tutorial, very clear and well-explained. Thanks man!

    • @KahanDataSolutions
      @KahanDataSolutions  2 роки тому

      Thank you!

    • @michaelkennedy5126
      @michaelkennedy5126 2 роки тому

      what that guy said, I really liked the simple octocat and text transitions between sections as well. Subscribed!

  • @ai.201
    @ai.201 3 роки тому +5

    Finally, I was quite confused before. Thankyou.

  • @ItsThankK
    @ItsThankK Рік тому

    Thanks a bunch. Very hands-on and straight to the point tutorial 👍

  • @osarobostarlite7596
    @osarobostarlite7596 2 роки тому

    awesome , this is one of the most informative videos i have seen on this topic so far. you earned my sub.

  • @abababa514
    @abababa514 Рік тому

    YOU ARE A LEGEND, MY FRIEND!

  • @akashvashishtha3424
    @akashvashishtha3424 Місяць тому

    Thanks mate. to the point and got the work done. cheers.

  • @buzzcodez
    @buzzcodez Рік тому

    Best git tutorial i've watched so far.. thank you!

  • @agopkaroghlanian6338
    @agopkaroghlanian6338 2 роки тому

    This was absolutely perfect. Thank you!

  • @ambitionhut
    @ambitionhut 2 роки тому +1

    Thanks for a really good tutorial. I appreciate it.

  • @xiaoyuezhu3599
    @xiaoyuezhu3599 2 роки тому

    very clear!!! the only video that answers all my questions!

  • @romeopmusic6319
    @romeopmusic6319 Рік тому

    Thank you for this tutorial, clear and concise!!

  • @BizzaroBrainBoi
    @BizzaroBrainBoi 11 місяців тому

    I was able to create a new branch, thank you for the video!

  • @marwenmejri6435
    @marwenmejri6435 2 роки тому +2

    Very helpful Tutorial man, you made it seem too easy

  • @jawadsafdar8944
    @jawadsafdar8944 Рік тому

    Excellent videos and very clear to understand and follow all steps. Thanks

  • @sureshmg6786
    @sureshmg6786 2 роки тому

    Thanks, this helped me to learn new today!! Keep going 👏👏

  • @_KobbyOb
    @_KobbyOb Рік тому

    Thanks, this was what I really needed!

  • @user-jh3xh6pq9b
    @user-jh3xh6pq9b 2 роки тому

    The best explanation! Thanks a lot!

  • @daumienebi
    @daumienebi Рік тому

    Thanks a lot for the video.

  • @gamzenurerdem2028
    @gamzenurerdem2028 3 місяці тому

    thank you so much :D

  • @NcVelocity
    @NcVelocity 2 роки тому +1

    Thank you simple and clean!!

  • @nunomiguel2203
    @nunomiguel2203 3 місяці тому

    thank you it helped me a lot ^^

  • @buropro1497
    @buropro1497 2 роки тому +1

    Thank you simple and clean.

  • @pawejerzyna5674
    @pawejerzyna5674 6 місяців тому

    perfect, thanks

  • @vendetaace5135
    @vendetaace5135 Рік тому

    Thank you, very helpful. straight to point

  • @meghana3005
    @meghana3005 2 роки тому

    Thanks for a really good tutorial.

  • @olp9667
    @olp9667 Рік тому

    Thanks mate, this tutorial helped me so much!! :D

  • @K_smoke_em
    @K_smoke_em Рік тому +1

    Thank you! Outstanding explanation.

  • @n.dclothing8529
    @n.dclothing8529 2 роки тому

    what a great F-ing video love it man keep them videos coming great job!

  • @ohmakademi
    @ohmakademi 2 роки тому

    That was info i was looking for. Thansk a lot !

  • @erikafunny.
    @erikafunny. 2 роки тому

    Best Explanation so far

  • @beansandsound
    @beansandsound Рік тому

    Thank you! 💙

  • @LeBossDesBossDesBosss
    @LeBossDesBossDesBosss Рік тому

    SUPER VIDÉO MERCI BEAUCOUP POUR L'AIDE !!

  • @dataisfun4964
    @dataisfun4964 Рік тому

    Thanks clear and simple to understand.

  • @mounis
    @mounis 3 роки тому +2

    Great video! Thanks.

  • @sourabhkulkarni1731
    @sourabhkulkarni1731 Рік тому

    Thanks man!

  • @osamamughal2707
    @osamamughal2707 Рік тому

    Thankyou soo much for it

  • @Brosales1414
    @Brosales1414 Рік тому

    Great video!

  • @joep5094
    @joep5094 2 роки тому +1

    What should you already made changes, whilst still being in the main branch. Is there any way to transfer these changes to a branch?

  • @SnoopyMatcha
    @SnoopyMatcha 10 місяців тому

    You are a lord👑, sir. Thanks a lot.

  • @samlaxton7510
    @samlaxton7510 2 роки тому

    Brilliant, thanks man!

  • @amarantakruger8902
    @amarantakruger8902 Рік тому

    Very clear thankyou!

  • @muhamedfurqan
    @muhamedfurqan 2 роки тому

    To the point! Awesome 🤗

  • @devabdee
    @devabdee Рік тому

    Great one. Really helpful. hank you

  • @goldeneye075
    @goldeneye075 Рік тому

    A very good explanation , and would be much better if you can increase the font size. Nice work !!!

  • @murwaneisa2287
    @murwaneisa2287 2 роки тому +1

    thanks a lot that was helpful for me : D

  • @wydm208
    @wydm208 2 роки тому

    so simple, well made video

  • @akshatchaudhary9393
    @akshatchaudhary9393 Рік тому

    great video

  • @byetodd
    @byetodd 2 роки тому

    Wow, finally!

  • @sohelansari5403
    @sohelansari5403 2 роки тому

    very well explained

  • @GAMEBR0VIP2462
    @GAMEBR0VIP2462 2 роки тому

    im trying to download a project but when i open it isnt working proper. then at the bottom of the project i see this Fork the Project
    Create your Feature Branch (git checkout -b feature/Feature)
    Commit your Changes (git commit -m 'Add some Feature')
    Push to the Branch (git push origin feature/Feature)
    Open a Pull Request
    i know nothing abut this so could you maybe explain to me how i might ?.

  • @farizakberov5536
    @farizakberov5536 Рік тому

    Thanks for it friend.

  • @isurumw6119
    @isurumw6119 Рік тому

    For push command, its showing git push - - set-upstream origin . Is it the same as origin head?

  • @entity5678
    @entity5678 2 роки тому

    very helpful video..thank you

  • @rufusopeyemi268
    @rufusopeyemi268 Рік тому +1

    wow!😚😚😚 this really help

  • @sipwhitemocha
    @sipwhitemocha 8 місяців тому

    Hello, is "pushing" to Github as shown in 6:35 as same as "Publishing" to github (which is said in VSCode -> Source Control) after you commit

  • @whiskers08spot09
    @whiskers08spot09 4 місяці тому

    Im using Vite, and deploying it to Netlify via Github, would all this still work?

  • @thisisaegis
    @thisisaegis 11 місяців тому

    Thank you

  • @MoEDF
    @MoEDF Рік тому

    Hi. How to fix that fatal error? Is it the way you created the branch?

  • @MICHAELLEE-ni6qb
    @MICHAELLEE-ni6qb Рік тому

    When i try to git push origin head I'm getting "error: src refspec head does not match any" and "error: failed to push some refs: ..."

  • @user-zt8wf5lp4o
    @user-zt8wf5lp4o Рік тому

    The video was very good and nicely explained, But need to ask If we want to create branch in other git hub repo under master then do we need that git hub username and email address?

  • @クバ
    @クバ 11 місяців тому

    Thank you. Very helpful
    For anyone already knowing Git and just looking for command to push new branch $git push origin head (be sure to be at the branch you want to push)

  • @kushagrasinghsisodia9380
    @kushagrasinghsisodia9380 11 місяців тому

    thanks bro

  • @sarba85528
    @sarba85528 Рік тому

    Thank you!!

  • @jaileneveras8
    @jaileneveras8 Рік тому

    thanks so much!

  • @user-jx8fv2jw1f
    @user-jx8fv2jw1f 2 роки тому

    Kahan, I am confused about one concept and I want to ask you. I downloaded master repo from a link using VSC and i was trying to add some component in there (as a practice given from someone. I kinda write my own component instead of the given component). Then I want to add these my written component to the original master repo. However, I don't want to merge/push my work with master repo (i just want to show that i have done some work). Do I need to first create my own branch using git branch -c? Then what command to use after? Do i just commit it?

    • @KahanDataSolutions
      @KahanDataSolutions  2 роки тому +2

      Hi Han, yes you are on the right track.
      1) Create your own feature branch "git branch -b BranchName"
      2) Make your changes and save the files
      3) "Add" the files to your branch by running "git add ."
      4) "Commit" the changes to the branch by running "git commit -m "some message about the changes" "
      * Note that at this point the branch and the associated changes only exist on your local machine .
      5) "Push" the changes to the remote server so that it is visible to others on GitHub by running "git push origin head"

  • @stefkostov9745
    @stefkostov9745 2 роки тому

    very good video

  • @elbachiroutidrarine9680
    @elbachiroutidrarine9680 2 роки тому

    Thank u man

  • @bornfree465
    @bornfree465 Рік тому

    thnks a million!

  • @stefanosstavropoulos8011
    @stefanosstavropoulos8011 Рік тому

    Perfect!

  • @maitreyeedey7731
    @maitreyeedey7731 2 роки тому

    Thanks for the video. Really helpful but the fonts are small and hard to see. If you make it a little more visible for your upcoming videos that will be really great.

    • @KahanDataSolutions
      @KahanDataSolutions  2 роки тому +1

      Thanks for watching! And yes I've started adding zoom-ins on newer videos to help with that. Hopefully that makes it easier to read

  • @ol1175
    @ol1175 3 роки тому +1

    Thanks !!!

  • @micmic2575
    @micmic2575 2 роки тому

    What should I do if I want to want to push and updated version of master file?
    I have old master file in master repository and a new file outside of file location. How do I go about pushing changes?

    • @KahanDataSolutions
      @KahanDataSolutions  2 роки тому

      1. Create a new "dev" branch from existing master branch
      2. Add your updates to "dev" branch
      3. Merge "dev" branch changes to master branch

  • @sameerahmedshaikh4479
    @sameerahmedshaikh4479 2 роки тому

    Thank you for this tutorial!! I am an intern. last week I created a new branch and commit the branch using the command "git commit -m "my message". but I was not knowing I should push also. As you said 06:33 will be stored in the local machine. How to find it and push it to git. Kindly help me with this.

    • @canhamzacode
      @canhamzacode Рік тому +1

      press git status on your terminal to see if they are ready to be pushed if not add them to your local git with the git add . after that commit your change then push. hope it was helpful

  • @user-yh3lp3ql1o
    @user-yh3lp3ql1o 8 місяців тому

    how do i get a README?

  • @CoderDocsYT
    @CoderDocsYT 2 роки тому

    error: src refspec head does not match any

  • @kairiannah
    @kairiannah 2 роки тому

    thank you

  • @muhammedfurkandogan1586
    @muhammedfurkandogan1586 2 роки тому

    Thank u

  • @markovukotic6686
    @markovukotic6686 3 роки тому +1

    Thank you!

  • @sanaasherif9134
    @sanaasherif9134 2 роки тому

    can you only create two branches at a time in github?

    • @KahanDataSolutions
      @KahanDataSolutions  2 роки тому

      Nope you can actually have many different branches at the same time

  • @brahimlancas8960
    @brahimlancas8960 Рік тому

    i hope this tuto will show as how without code, i writing this before watching video

  • @kikesings4843
    @kikesings4843 Рік тому

    The video is very good except your subtitles are covering the terminal and one can't really see what you are doing but can hear you clearly.

  • @unique8721
    @unique8721 2 роки тому

    lol I can't find the branch next to main at all??

    • @KahanDataSolutions
      @KahanDataSolutions  2 роки тому +1

      Did you create a new branch first? Also, where are you looking?

  • @androkublashvili2738
    @androkublashvili2738 День тому

    fatal: not a git repository (or any of the parent directories): .git
    I am getting this error, why not mention " if you are getting errors, then do this..." ?!!!!!!
    you should have thought about it !

  • @billiamreynolds
    @billiamreynolds 2 роки тому

    dude you sound exactly like Sam Harris

  • @muhammadnaufal5751
    @muhammadnaufal5751 Рік тому

    finally after 4 hours 🥲, thank you so much

  • @AhmedKhan-rt6oz
    @AhmedKhan-rt6oz 2 роки тому

    great and nice .. need support