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

  Рет қаралды 297,571

Kahan Data Solutions

Kahan Data Solutions

Күн бұрын

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.
►► The Starter Guide for GitHub (Free PDF)
Learn 2 key GitHub benefits for data engineers + get a cmd cheat sheet so you can develop like a pro → bit.ly/starter-github
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

Пікірлер: 154
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
►► The Starter Guide for Modern Data → bit.ly/starter-mds Simplify “modern” architectures + better understand common tools & components
@johnpulwers680
@johnpulwers680 Жыл бұрын
Will these commands also work with GitLab?
@rondevcode
@rondevcode Жыл бұрын
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.
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Glad to have helped, thanks for watching Ron!
@vatsalanundloll3878
@vatsalanundloll3878 Жыл бұрын
Thank you so much, that was by far one of the best videos I've seen on github.
@StephanieMitchell-hv3qh
@StephanieMitchell-hv3qh Жыл бұрын
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!
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Glad it helped! Thanks Stephanie!
@matthewhawkins3697
@matthewhawkins3697 2 жыл бұрын
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 жыл бұрын
Finally, I was quite confused before. Thankyou.
@KahanDataSolutions
@KahanDataSolutions 3 жыл бұрын
Glad to have cleared it up!
@abababa514
@abababa514 Жыл бұрын
YOU ARE A LEGEND, MY FRIEND!
@ItsThankK
@ItsThankK Жыл бұрын
Thanks a bunch. Very hands-on and straight to the point tutorial 👍
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Glad it helped! Thanks for watching
@akashvashishtha3424
@akashvashishtha3424 Ай бұрын
Thanks mate. to the point and got the work done. cheers.
@osarobostarlite7596
@osarobostarlite7596 2 жыл бұрын
awesome , this is one of the most informative videos i have seen on this topic so far. you earned my sub.
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Thanks Osarobo! Glad it was helpful
@osarobostarlite7596
@osarobostarlite7596 2 жыл бұрын
@@KahanDataSolutions sure it was.
@agopkaroghlanian6338
@agopkaroghlanian6338 Жыл бұрын
This was absolutely perfect. Thank you!
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Glad it helped!
@BizzaroBrainBoi
@BizzaroBrainBoi 10 ай бұрын
I was able to create a new branch, thank you for the video!
@KahanDataSolutions
@KahanDataSolutions 10 ай бұрын
Nice work!
@buzzcodez
@buzzcodez Жыл бұрын
Best git tutorial i've watched so far.. thank you!
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Thank you!
@xiaoyuezhu3599
@xiaoyuezhu3599 2 жыл бұрын
very clear!!! the only video that answers all my questions!
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Great to hear! Thanks for watching
@romeopmusic6319
@romeopmusic6319 Жыл бұрын
Thank you for this tutorial, clear and concise!!
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Glad it was helpful!
@ambitionhut
@ambitionhut 2 жыл бұрын
Thanks for a really good tutorial. I appreciate it.
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Thanks for watching
@daumienebi
@daumienebi Жыл бұрын
Thanks a lot for the video.
@_KobbyOb
@_KobbyOb Жыл бұрын
Thanks, this was what I really needed!
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Glad it helped!
@sureshmg6786
@sureshmg6786 Жыл бұрын
Thanks, this helped me to learn new today!! Keep going 👏👏
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Happy to help! Thanks for watching
@ohmakademi
@ohmakademi 2 жыл бұрын
That was info i was looking for. Thansk a lot !
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Glad to hear that! Thanks for watching
@user-jh3xh6pq9b
@user-jh3xh6pq9b 2 жыл бұрын
The best explanation! Thanks a lot!
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Thanks!
@jawadsafdar8944
@jawadsafdar8944 Жыл бұрын
Excellent videos and very clear to understand and follow all steps. Thanks
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Glad it was helpful!
@NcVelocity
@NcVelocity 2 жыл бұрын
Thank you simple and clean!!
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Glad it was helpful!
@buropro1497
@buropro1497 2 жыл бұрын
Thank you simple and clean.
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
You're welcome!
@n.dclothing8529
@n.dclothing8529 2 жыл бұрын
what a great F-ing video love it man keep them videos coming great job!
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Thanks!
@marwenmejri6435
@marwenmejri6435 2 жыл бұрын
Very helpful Tutorial man, you made it seem too easy
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Thank you!
@vendetaace5135
@vendetaace5135 Жыл бұрын
Thank you, very helpful. straight to point
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Thanks for watching
@gamzenurerdem2028
@gamzenurerdem2028 2 ай бұрын
thank you so much :D
@LeBossDesBossDesBosss
@LeBossDesBossDesBosss Жыл бұрын
SUPER VIDÉO MERCI BEAUCOUP POUR L'AIDE !!
@pawejerzyna5674
@pawejerzyna5674 6 ай бұрын
perfect, thanks
@beansandsound
@beansandsound Жыл бұрын
Thank you! 💙
@K_smoke_em
@K_smoke_em Жыл бұрын
Thank you! Outstanding explanation.
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Glad you enjoyed it!
@dataisfun4964
@dataisfun4964 Жыл бұрын
Thanks clear and simple to understand.
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Glad it was helpful!
@olp9667
@olp9667 Жыл бұрын
Thanks mate, this tutorial helped me so much!! :D
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Glad it helped!
@meghana3005
@meghana3005 2 жыл бұрын
Thanks for a really good tutorial.
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Glad it was helpful!
@SnoopyMatcha
@SnoopyMatcha 10 ай бұрын
You are a lord👑, sir. Thanks a lot.
@sourabhkulkarni1731
@sourabhkulkarni1731 Жыл бұрын
Thanks man!
@nunomiguel2203
@nunomiguel2203 2 ай бұрын
thank you it helped me a lot ^^
@KahanDataSolutions
@KahanDataSolutions 2 ай бұрын
Glad it helped!
@erikafunny.
@erikafunny. 2 жыл бұрын
Best Explanation so far
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Glad it was helpful!
@osamamughal2707
@osamamughal2707 Жыл бұрын
Thankyou soo much for it
@mounis
@mounis 3 жыл бұрын
Great video! Thanks.
@KahanDataSolutions
@KahanDataSolutions 3 жыл бұрын
Glad you liked it!
@muhamedfurqan
@muhamedfurqan 2 жыл бұрын
To the point! Awesome 🤗
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Thanks for watching!
@devabdee
@devabdee Жыл бұрын
Great one. Really helpful. hank you
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Glad it was helpful!
@samlaxton7510
@samlaxton7510 2 жыл бұрын
Brilliant, thanks man!
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
You bet!
@amarantakruger8902
@amarantakruger8902 Жыл бұрын
Very clear thankyou!
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
You're welcome!
@akshatchaudhary9393
@akshatchaudhary9393 Жыл бұрын
great video
@byetodd
@byetodd 2 жыл бұрын
Wow, finally!
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Thanks for watching!
@Brosales1414
@Brosales1414 Жыл бұрын
Great video!
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Thanks!
@クバ
@クバ 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)
@murwaneisa2287
@murwaneisa2287 2 жыл бұрын
thanks a lot that was helpful for me : D
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Glad it helped!
@wydm208
@wydm208 2 жыл бұрын
so simple, well made video
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Thank you!
@entity5678
@entity5678 Жыл бұрын
very helpful video..thank you
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Glad it was helpful!
@thisisaegis
@thisisaegis 10 ай бұрын
Thank you
@sohelansari5403
@sohelansari5403 Жыл бұрын
very well explained
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
thanks for watching!
@farizakberov5536
@farizakberov5536 Жыл бұрын
Thanks for it friend.
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
You're welcome, thanks for watching
@goldeneye075
@goldeneye075 Жыл бұрын
A very good explanation , and would be much better if you can increase the font size. Nice work !!!
@kushagrasinghsisodia9380
@kushagrasinghsisodia9380 10 ай бұрын
thanks bro
@sarba85528
@sarba85528 Жыл бұрын
Thank you!!
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
You're welcome!
@jaileneveras8
@jaileneveras8 Жыл бұрын
thanks so much!
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
You're welcome! Thanks for watching
@rufusopeyemi268
@rufusopeyemi268 11 ай бұрын
wow!😚😚😚 this really help
@KahanDataSolutions
@KahanDataSolutions 11 ай бұрын
Glad it helped!
@stefanosstavropoulos8011
@stefanosstavropoulos8011 Жыл бұрын
Perfect!
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Thank for watching!
@elbachiroutidrarine9680
@elbachiroutidrarine9680 2 жыл бұрын
Thank u man
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Thanks for watching
@stefkostov9745
@stefkostov9745 2 жыл бұрын
very good video
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Thanks!
@bornfree465
@bornfree465 Жыл бұрын
thnks a million!
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
Thanks for watching!
@ol1175
@ol1175 2 жыл бұрын
Thanks !!!
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
You're welcome!
@kairiannah
@kairiannah 2 жыл бұрын
thank you
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
You're welcome
@maitreyeedey7731
@maitreyeedey7731 Жыл бұрын
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 Жыл бұрын
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
@joep5094
@joep5094 2 жыл бұрын
What should you already made changes, whilst still being in the main branch. Is there any way to transfer these changes to a branch?
@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?
@muhammedfurkandogan1586
@muhammedfurkandogan1586 2 жыл бұрын
Thank u
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
You're welcome
@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
@markovukotic6686
@markovukotic6686 3 жыл бұрын
Thank you!
@KahanDataSolutions
@KahanDataSolutions 3 жыл бұрын
You're welcome!
@isurumw6119
@isurumw6119 Жыл бұрын
For push command, its showing git push - - set-upstream origin . Is it the same as origin head?
@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 жыл бұрын
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"
@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 ?.
@whiskers08spot09
@whiskers08spot09 3 ай бұрын
Im using Vite, and deploying it to Netlify via Github, would all this still work?
@brahimlancas8960
@brahimlancas8960 Жыл бұрын
i hope this tuto will show as how without code, i writing this before watching video
@brahimlancas8960
@brahimlancas8960 Жыл бұрын
i was wrong, that just redicilisness wtever
@MoEDF
@MoEDF Жыл бұрын
Hi. How to fix that fatal error? Is it the way you created the 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 Жыл бұрын
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
@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
@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: ..."
@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.
@user-yh3lp3ql1o
@user-yh3lp3ql1o 7 ай бұрын
how do i get a README?
@CoderDocsYT
@CoderDocsYT 2 жыл бұрын
error: src refspec head does not match any
@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
@unique8721
@unique8721 2 жыл бұрын
lol I can't find the branch next to main at all??
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Did you create a new branch first? Also, where are you looking?
@billiamreynolds
@billiamreynolds 2 жыл бұрын
dude you sound exactly like Sam Harris
@muhammadnaufal5751
@muhammadnaufal5751 Жыл бұрын
finally after 4 hours 🥲, thank you so much
@KahanDataSolutions
@KahanDataSolutions Жыл бұрын
You're welcome! Glad to have helped and thanks for watching
@AhmedKhan-rt6oz
@AhmedKhan-rt6oz 2 жыл бұрын
great and nice .. need support
@KahanDataSolutions
@KahanDataSolutions 2 жыл бұрын
Thank you!
Git Tutorial For Dummies
19:25
Nick White
Рет қаралды 1 МЛН
How to create new branch in GitHub?
5:00
AyyazTech
Рет қаралды 2,4 М.
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 61 МЛН
Best father #shorts by Secret Vlog
00:18
Secret Vlog
Рет қаралды 21 МЛН
KINDNESS ALWAYS COME BACK
00:59
dednahype
Рет қаралды 148 МЛН
Clowns abuse children#Short #Officer Rabbit #angel
00:51
兔子警官
Рет қаралды 32 МЛН
Create and clone a new repository on GitHub
5:10
Kahan Data Solutions
Рет қаралды 64 М.
It’s time to move on from Agile Software Development (It's not working)
11:07
Git Branching and Merging - Detailed Tutorial
54:28
SuperSimpleDev
Рет қаралды 192 М.
How to design a modern CI/CD Pipeline
9:59
DevOps Journey
Рет қаралды 95 М.
50 YouTubers Fight For $1,000,000
41:27
MrBeast
Рет қаралды 118 МЛН
*Next-door 10x Software Engineer* [FULL]
4:50
Programmers are also human
Рет қаралды 345 М.
Git It? How to use Git and Github
12:19
Fireship
Рет қаралды 731 М.
Git MERGE vs REBASE: The Definitive Guide
9:39
The Modern Coder
Рет қаралды 91 М.
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 61 МЛН