No video

Git & GitHub Tutorial for Beginners #8 - Branches

  Рет қаралды 322,829

Net Ninja

Net Ninja

Күн бұрын

Hey gang, in this git tutorial I'll introduce you to branching and creating new branches to test out new features on. This way, we're safe from ever messing up our master branch!
----- COURSE LINKS:
+ Atom editor - atom.io/a
+ CMDER - cmder.net/
+ GIT - git-scm.com/
---------------------------------------------------------------------------------------------
Related tutorials:
----- NODE.JS TUTORIALS
• Node JS Tutorial for B...
----- SUBSCRIBE TO CHANNEL - / @netninja
============== The Net Ninja =====================
For more front-end development tutorials & to black-belt your coding skills, head over to - / @netninja or thenetninja.co.uk
================== Social Links ==================
Twitter - @TheNetNinja - / thenetninjauk

Пікірлер: 88
@erichepperlewp
@erichepperlewp 2 жыл бұрын
4:00 - Create feature branch from master: git branch new-branch-name 4:24 - To switch to a particular branch: git checkout branch-name 4:35 - Which branch am I on? git branch -a 6:30 - To delete a branch: Checkout any branch except the one you want to delete; git branch -D branch-name 7:25 - How to create new branch and check it out at the same time: git checkout -b new-branch-name
@bytecauldron
@bytecauldron 7 жыл бұрын
This was incredibly clear and concise. Thank you for these.
@NetNinja
@NetNinja 7 жыл бұрын
Thanks so much, really glad you liked :)
@Encursed
@Encursed 4 жыл бұрын
Im new to Git and GitHub, so thanks for the clear and understandable explanation.
@LeetCodeSimplified
@LeetCodeSimplified 3 жыл бұрын
*Cheatsheet for this video:* $ git branch my-awesome-branch # create a new branch $ git checkout my-awesome-branch # switch to a specific branch $ git branch -a # view all branches $ git branch -D my-awesome-branch # delete a branch even if it's not fully merged $ git branch -d my-awesome-branch # delete a branch but only if it's is fully merged $ git checkout -b my-awesome-branch # create a new branch and switch to it immediately
@paulhitchmough4440
@paulhitchmough4440 4 жыл бұрын
*googles git branch tutorial* *realizes it's net ninja* *already knows he's gonna be learned hard and learned easy* Thank you for what you do, Shaun!
@allania7med113
@allania7med113 4 жыл бұрын
googles git branch tutorial remember that net ninja may have a tutorial on this googles git branch tutorial net ninja already knows he's gonna be learned hard and learned easy
@mustyfx244
@mustyfx244 3 жыл бұрын
4 years later and this is still one of the best git tutorial on youtube
@John-ti6iv
@John-ti6iv 3 жыл бұрын
Amazing tutorial and teaching style. You teach in a tempo that allows to just do the things you do while listening to you in the background even not watching. Will highly recommend
@md.mehrabhaque2223
@md.mehrabhaque2223 4 жыл бұрын
Man your explanations are crystal clear and beginner friendly, greetings from Bangladesh.
@NeelSandellISAWESOME
@NeelSandellISAWESOME 4 жыл бұрын
Thank you so much! This really helped me visualize what was actually happening when a new branch was created.
@anjanamaria
@anjanamaria 3 жыл бұрын
This was SO GOOD! Simple, concise & gives you the exact, practical info you're looking for! Perfection
@munch6814
@munch6814 4 жыл бұрын
This guy is a god at teaching. Why don't they hire teachers like you in our colleges TT
@renanmendes35
@renanmendes35 Жыл бұрын
Incredibly straightforward and well-explained.
@NetNinja
@NetNinja Жыл бұрын
Thanks!
@latestdave
@latestdave 3 жыл бұрын
Mate, I saw alot of tutorials about branches and yours is the best by far! Thanks to You, I finally understand what branches are about and I can use them as well.
@mostidum
@mostidum 2 жыл бұрын
The brevity and clarity on this video is so appreciated! Thank you! You're a legend.
@lifewithoutbigbrother355
@lifewithoutbigbrother355 3 жыл бұрын
Man you make everything so simple bro. Really appreciate you making this. Best online by far.
@seegerp2000
@seegerp2000 3 жыл бұрын
This is an excellent video on branching. Thanks for putting this together so well.
@Hacking-NASSA-with-HTML
@Hacking-NASSA-with-HTML Жыл бұрын
Just a Git Ninja 😁 Awesome job, man!
@ayushiagarwal6996
@ayushiagarwal6996 4 жыл бұрын
Wish I had watched this before. Git is indeed needed, I had a project wherein I would save all the code into another folder and then make changes in case the code dumped. But git makes it a lot more easier to revert your changes in a second
@ansarqazi4377
@ansarqazi4377 2 жыл бұрын
The Net Ninja is really an amazing guy!
@anthonycalo4047
@anthonycalo4047 2 жыл бұрын
Really good tutorial! I like that you kept open editor on the left
@ozzyfromspace
@ozzyfromspace 3 жыл бұрын
At least on Mac, "git branch" without explicitly including the "-a" flag will still show you all the branches in your repository, as well as the branch that you're on currently on using the color and asterisk approach, as per this video :)
@wBacz
@wBacz 6 жыл бұрын
Maaaan ya are great! Perfect work! Your lessons are so simple, thx.
@varunupadhyay2488
@varunupadhyay2488 6 ай бұрын
Crystal clear explanation sir
@frankdvorak3644
@frankdvorak3644 6 жыл бұрын
Great tutorial, so clear and easy to follow, you should get paid for this, watching all of your stuff now. Thank you
@join_devhub
@join_devhub Жыл бұрын
writing git commit messages in present tense is a good habit
@nabeelaron7527
@nabeelaron7527 4 жыл бұрын
You are really good at this, keep up the good work, man.
@alan6506305
@alan6506305 6 жыл бұрын
the best git tutorial on youtube thanks
@kobedonis627
@kobedonis627 3 жыл бұрын
good job sir because i survive 2nd yr college!
@danielleordaz3160
@danielleordaz3160 3 жыл бұрын
me too
@robbydeleon4872
@robbydeleon4872 3 жыл бұрын
You are so great. Hope you make a series on Git Flow as well.
@apoorvbedmutha457
@apoorvbedmutha457 3 жыл бұрын
incredible tutorial, especially your examples make understanding easy
@amanbagrecha
@amanbagrecha 3 жыл бұрын
Why would anyone dislike the video. The `branch` video on YT.
@chaimabouchoucha1827
@chaimabouchoucha1827 3 жыл бұрын
very well explained, the net ninja makes thinks look so easy. thank you so much
@swornimrajdhakal1689
@swornimrajdhakal1689 3 жыл бұрын
tutorial level : GOD
@code-with-vivek
@code-with-vivek 2 жыл бұрын
Great tutorial Net Ninja...
@danieljohns1318
@danieljohns1318 7 жыл бұрын
To test out creating a branch, I actually did the opposite of you haha! I deleted a file in the branch, but left it in the master ;p
@sleep-404
@sleep-404 7 жыл бұрын
Love you Ninjaa!!
@Youngs1998
@Youngs1998 2 жыл бұрын
Thank you so much, git was really annoying me and your lesson is perfect
@amelia0018
@amelia0018 3 ай бұрын
SO HELPFUL! Thank you.
@NetNinja
@NetNinja 3 ай бұрын
Glad it was helpful! :) thanks
@carloslemare6060
@carloslemare6060 4 жыл бұрын
Every time your Windows sounds with a dialog, I think it's mine, and I have a Mac, and in Work I use Linux! 🤪
@bruceskellator
@bruceskellator 5 жыл бұрын
Great tutorial! Really appreciate it!
@cyril_bleh
@cyril_bleh 4 жыл бұрын
Thanks for putting it more clearly :)
@_isaac_muniz_
@_isaac_muniz_ 2 жыл бұрын
Thanks, ninja, very good course :)
@atineshs
@atineshs 5 жыл бұрын
Thanks for making it so simple
@mauricioaguilera9422
@mauricioaguilera9422 Жыл бұрын
Thank you for the help!
@NetNinja
@NetNinja Жыл бұрын
No problem Mauricio, thanks for watching!
@ranchu7083
@ranchu7083 4 жыл бұрын
Very clear, many thanks
@urdustoriespoetrycollectio976
@urdustoriespoetrycollectio976 7 жыл бұрын
Waow Very Helpful. Thank you
@gamewatch9967
@gamewatch9967 4 жыл бұрын
Here before github renames it's "master" branch
@professeurish
@professeurish 3 жыл бұрын
that's what I was looking for
@stackdeveloper6614
@stackdeveloper6614 5 жыл бұрын
When I checkout from a new branch to master, the files associated with the new branch are not automatically removing from the atom project folder at the left top side. Why??
@dropfiremusic4752
@dropfiremusic4752 5 жыл бұрын
Tremendous!
@FrankNiessenMetallurgy
@FrankNiessenMetallurgy 4 ай бұрын
I like brunch!
@ne9835
@ne9835 5 жыл бұрын
Thanks man!!!
@DongQian
@DongQian 7 жыл бұрын
Thanks so much
@vamsi1507
@vamsi1507 7 жыл бұрын
Hi Shaun, Thanks for the excellent tutorials. Can you make a tutorial on Native Script also? Thanks
@ahmedalhisaie7698
@ahmedalhisaie7698 6 жыл бұрын
thanks very useful
@davideugene7911
@davideugene7911 6 жыл бұрын
Merci :)
@marcosraul4132
@marcosraul4132 4 жыл бұрын
"It's just a javascript feature." lol
@KevinTempelx
@KevinTempelx 3 жыл бұрын
Thank you!
@practicaltechie5390
@practicaltechie5390 7 жыл бұрын
thanks
@AntoinSts
@AntoinSts 3 ай бұрын
thanks very much :)
@NetNinja
@NetNinja 3 ай бұрын
You're welcome :)
@ammarhassan_
@ammarhassan_ 5 жыл бұрын
Good but that windows sound made me nuts of why my pc is doing noise till I find it was yours.lol
@CastIronAbs
@CastIronAbs 5 жыл бұрын
Hi Net Ninja. I love your tutorials, thank you for everything. I have a question. You first committed the changes in the js file to branch feature-b. You then checked out the master branch. While looking at the master branch, although the old js file itself was not visible, the code from the old js file remained in the tab in the editor. When you go to close it, it gives you a warning asking if you want to save it. Is this a feature of Atom or a bug? If it is a feature, how do you turn it off?
@nickfleming3719
@nickfleming3719 2 жыл бұрын
Would it be appropriate to use branches to deploy slightly modified versions of the master branch to different servers? or is there a better strategy. For example you set up separate servers to host your app for 2 different clients, but one of the clients requires some customization to be made
@Luna-cq9ic
@Luna-cq9ic 4 жыл бұрын
Fortnite Ninja POG
@mo.ali.
@mo.ali. 7 жыл бұрын
keep it up
@Anandkumar-jl6eb
@Anandkumar-jl6eb 4 жыл бұрын
Great tutorial for git................... whether it will work for all extension files????
@user-wf8ph7hi5i
@user-wf8ph7hi5i 4 жыл бұрын
N - word: nobutwhatareyoutryingtoask?
@xyzw0
@xyzw0 4 жыл бұрын
cool!
@iamse16
@iamse16 4 жыл бұрын
i can't create branch from what you do in this video.. git branch (branch_name) - after entering this code this message returns "fatal: Not a valid object name: 'master'."
@warronfrench8163
@warronfrench8163 5 жыл бұрын
So, *git checkout -b feature-a* replaces *git branch feature-a* *git checkout feature-a* in a single command?
@stackdeveloper6614
@stackdeveloper6614 5 жыл бұрын
Yes.
@MustafaBirsoz
@MustafaBirsoz 4 жыл бұрын
@leodragonheart754
@leodragonheart754 2 жыл бұрын
git branch is enough the -a isnt needed when using VSCode. Anyone know if there is any reason for using -a?
@linkin543210
@linkin543210 Жыл бұрын
whooo
@victoraderibigbe4107
@victoraderibigbe4107 4 жыл бұрын
How do you undo a revert commit?, and a reset commit without the --hard flag.Thanks
@likkiii07
@likkiii07 3 жыл бұрын
try reverting that revert commit again lol
@victoraderibigbe4107
@victoraderibigbe4107 3 жыл бұрын
@@likkiii07 Asked that question when I started learning Django. It's beautiful for me to see how far I've come. Weird how I've not needed to revert a revert since I started using git seriously 😅 Thank you!
@dever312
@dever312 Жыл бұрын
what is this theme
@Richard-pp9jr
@Richard-pp9jr 6 жыл бұрын
Sorry but this behaviour is not consist on Windows. When you switch back to master the file from the new branch is that there as an uncommitted change. and you can not move back to the new branch you just created because it is locked out. Until you commit the file that was just created.
@zidrexandag06
@zidrexandag06 3 жыл бұрын
whooo
Branching Strategies Explained
18:19
DevOps Toolkit
Рет қаралды 133 М.
Challenge matching picture with Alfredo Larin family! 😁
00:21
BigSchool
Рет қаралды 41 МЛН
CHOCKY MILK.. 🤣 #shorts
00:20
Savage Vlogs
Рет қаралды 29 МЛН
Они так быстро убрались!
01:00
Аришнев
Рет қаралды 3,1 МЛН
Kind Waiter's Gesture to Homeless Boy #shorts
00:32
I migliori trucchetti di Fabiosa
Рет қаралды 11 МЛН
Git Tutorial For Dummies
19:25
Nick White
Рет қаралды 1 МЛН
Git and GitHub Tutorial for Beginners
46:19
Kevin Stratvert
Рет қаралды 1,3 МЛН
Git PULL vs FETCH
7:13
The Modern Coder
Рет қаралды 15 М.
GIT: Working with Branches
6:37
CodeOps Show
Рет қаралды 411 М.
Git, GitHub, & GitHub Desktop for beginners
22:16
Coder Coder
Рет қаралды 741 М.
Git Tutorial for Beginners - Git & GitHub Fundamentals In Depth
43:06
Tech With Tim
Рет қаралды 829 М.
Git rebase is not that scary
21:44
Hitesh Choudhary
Рет қаралды 19 М.
Git Branching and Merging - Detailed Tutorial
54:28
SuperSimpleDev
Рет қаралды 200 М.
Challenge matching picture with Alfredo Larin family! 😁
00:21
BigSchool
Рет қаралды 41 МЛН