The guests goes to the stage (staging area) , then the photographer took the photograph (commit) that saves in the history of the wedding 🔥🔥🔥, this was amazing
Keep in mind that to make changes to your text file using vim , Press i to get into insert mode and then press esc + :x to exit ; Basic Vim commands, you might get stuck ;
Seen many git tutorials in the past. Had been using git for quite a long time now. But this is the best and most easy to understand tutorial I have seen so far. And I learned quite a few new things too, in the easiest way possible.
Took me around 4-5 hours to complete the video but truly they were worth it. I understood each and every one of the concept . Totally blown away by the content.
Honestly blown away by the content. Having already seen quite a few git/github tutorials in the past, I started watching the video with the intention of skimming through the content quickly but it was so engaging I ended up watching the whole video. None of the previous videos I've seen were this good, thanks for putting so much effort into the videos!
Sry i should be commenting after watching full video. But i can't control myself. After watching for just 11 min i am really happy that I could understand what u r teaching. This thing called github and its repository concept used to go a way abv my head bf. Now i am atleast able to understand. Thank you !
If you know about something and can explain it in terms that even a 3rd grade student can get it, shows that you truly understood it. Begin a professional, going through your content is fun and just love the way you break things into simpler ways. You are going big, brother. Hope to help you in some way and help the community.
You are the only one who made me understand the entire git and GitHub only in an hour. I was stuck in an endless loop but one of my friends told me about this video and I am really thankful to him and you as well.
The picture clicking example was perfect for beginners like me. Really enjoyed the tutorial and understood the commands used. Kudos to Kunal for creating this tutorial.
I tried 5-6 or even more times to learn git and github but this day is remarkable for me because i finally learned all the concepts in a very clear manner just i have no more fear of all the git commands thanks kunal bhaiya 😁
If i have forked a git project in local, after that I create a new branch to add new feature, but in b/w owner of the project make some changes, then where do i pull changes, in main or in new branch and if i pull changes in new branch does my changes got lost, pls explain ?
A simple note : at 16:28 kunal used vim text editor and opened names.txt file to write some text names and saved the file using (first press esc key then) ":x" hope it is more clear now :))
I've searched alot about git watched tons of videos on youtube googled alot whenever i want to do something with my projects on git. I never understood concepts of stash, rebase and all. I would like to say "BEST VIDEO ON GIT EVER". Appreciate it! By the way excited to see more videos like this. Great initiative man!🙌👏
this is literally the best git and github tutorial ever, i was able to understand the complicated parts that other tutorials couldn't explain well. thanks a lot
just completed the video i had watched plenty of tutorials but finally understand with the help of your video thank you so much for your tremendous effort also you have explained it in very easy language exapmle that you have took of wedding was just amazing i am very lucky to be member of this community lot to learn from you, thank you
Kunal bhai you have ignite a flame in me to become a devops engineer. Thank you so much. I will work hard come what may as per your videos directions. Lots of appreciations and love.
watched mostly every popular git tutorial (Hindi and English both) but no one explained like you brother. Really appreciate your work and thank you for providing such great content,
Thanks Kunal .... for all the efforts ...that you have taken to provide world class content at zero cost.... for the same content many edtechs are charging lakhs of Rs. Gratitude, blessings and more power to you ... that you keep doing what you do best and making us all Indians proud....
@@KunalKushwaha I am a window guy. And I face a lot of problem due to any tutorial taught on Linux or Mac. Can u suggest me some things to cope up with this.
Sir you are the only one who made me understand the entire git and GitHub only in hour ...I was stuck in an endless loop but one of my friend told me about this video and I am really thankful to him and you as well ...thanku very much sir
Firstly I find this video too fast to grab. But I know kunal is giving a quality content so I start giving some efforts from my side too and continue watching it a couple of time and finally I understood everything and I find putting efforts from my side worthy. So If you are finding the video too fast then be focused while watching and put some efforts from your side too because the content and explanation is outstanding.
in my 2 years of exploring all the cse teachers on youtube i have never seen a teacher teaching git branching using visuals thanks kunal for doing so it made my way of thinking just broader!
Very nice explanation by Kunal. Whatever he has explained here is more than sufficient to also work in real world projects. I am working in an IT MNC and I started using git 3months back and trust this video covers all the commands I have used so far. We have multiple people working on same branch and stash comes handy that time. Good work Kunal!
Hey Kunal, I am watching your video for the first time. And you won't believe that I am literally praying to god after watching this video that I was struggling in git and GitHub for the past 6 months. I was facing many difficulties like merge conflict, fetching the upstream code and pull the code,and even working with the branches. And after watching this video, I have tried every command, and literally, now I am crystal clear with Github, even with the branching best practices. I really thank you a lot for creating this video and waiting for the entire course of DSA.
I learnt lot from you regarding java which killed my life of unemployment Finally landed in a job and now in project. You are really a best teacher of mine. Thank You Kunal ❤️
The quality of the content, excellent presentation, and positive attitude make it really interesting and fun to watch. The fact that the views are more than the channel subscribers is a testament to this :)
Hey kunal, I just noticed there's no ad on this video....we really don't mind if there are any ad and you are earning from it.... we'll never skip ad on your channel since you are providing quality courses for absolutely free
I was looking for tutorials to learn git and git hub and i found your channel and i was just blown away by the content brother. As i have just entered in tech industry i got to know about lot of new career opportunities today for that thank you and looking forward to learn and help and grow in the community ..hope we will meet one day .
I liked how well you arranged java with data structures. I saw your dsa roadmap videos and that is by far the best roadmap and now you are teaching that by yourself. Thank you so much for this hard work that you are doing for students like us.
same here, I too have watched plenty of git and GitHub tutorials but this one is exactly how a tutorial or explanatory video should be. Very well constructed wherein Kunal is not only teaching you how to perform various command but also clarifying you why would you need them at the first place. #respect brother
Those who are thinking that I not understanding anything from this video or you are been like he is using mac and I am on windows I want spoon feeding everything he write I just to to copy paste it..... If this is your approach then you will learn very limited. I will just suggest you to stick to this video if not understanding see it again and again or you can google it also. Their are some commands on mac that is not for windows, that you can google it. By searching some thing on your own you will also end up with exploring very new things. BTW great video kunal Learn a lot Thankyou so much 🙏
Aww....thanks man... Your way of taking perfect examples to explain the concept is tremendous.... The wedding photographer example made it crystall clear for me to understand it so well that i would never even have to remember anymore..😁 Thanks Kunal bhaiya..... for providing such amazing content that too for zero cost 🥺🤗...
# GOD Of DSA Hi I am a 11yr exp java guy was searching for some free course on youtube for DSA came accross your course and i just feel love in it...all in one place that too with java...i must say you have done very awsome work...your name will be there on this earth as long as DSA will be asked in interviews...May Supream Lord Vishnu Bless You ✌🙏
Helped a lot! Was always scared of git and used to just contribute using GitHub but now I am confident about Git as well. 🔥 You and Eddie are so good at this!
The bestest tutorial on Git and GitHub! Kunal you have a gift of making things so easy that any person from any profession can understand it! Can't wait for your next video on DevOps! Thank you.
i had checked out a few other git tutorials.. honestly speaking this one is the best, he literally makes concepts crystal clear. No bogus talk.. nothing unnecessary straight up to the point. thanks kunal
I never comment in general but I thought I should share this.. I've watched infinitely many videos in TH-cam, paid for courses on this topic but this is the best one... No words.. Thanks Kunal
My senior told me that Git and GitHub is very Important in Industries. I wanted to learn but was afraid by the Terms pull,fetch, rebase. But saw this video and was not knowing when it got completed!! Thanks for making this video!!
Hey Kunal, I always struggled with Git in interviews. Saw this video before my last interview and practiced along. Was able to do good this time. Thanks mate! Edit: Got offer as well
This is the best tutorial for Git and Github I've seen so far !! Your concise, on point teaching method is really wonderful.. I understood most of the concepts clearly.. Thank you so much.. You have a really nice way of teaching things...
amazing way of explaining by comparing it to wedding photography, i had my git open and was following along each step, and in just first 15 minutes of the video i got a good grasp of the general environment of git and github, and how it is used to maintain changes in the repositories, thanks alot for the video, it is really really helpful.
Bro literally loving the way you are explaining the things...your efforts are clearly visible man❤️🙌 really got goosebumps while studying due to excitement that what's going to be in next videos. It is going to be a long and wonderful journey⚡
09:05 Git is a version control system that allows us to save the history of our project and collaborate with others 18:10 Git status command helps to track changes that are not saved in the history of the project 27:15 Learn how to modify files, view project history, remove commits, and use git stash and git stash pop commands. 36:20 Branching allows you to work on new features or bug fixes without affecting the main branch. 45:25 Forking a project allows you to make changes without directly modifying the original project. 54:30 Always create new branches and pull requests for new features or bugs to avoid code mixing and make code review easier. 1:03:35 Keeping your branch in sync with the main branch of upstream 1:12:40 Merging Codes and Resolving Merge Conflicts
Thank you for this in-detail explanation, it is put across in a simple and best way possible. Have been struggling with understanding this and getting started with git and GitHub. Thanks for making my life easier.
if anyone else following this tutorial and doing this at the same time as me than you may encounter an error called "git: fatal unable to auto-detect email address", Kunal already mentioned it in the description, that you have to write these two commands first $ git config --global user.name "your_name" $ git config --global user.email your_email after this, that error will get fixed, btw Kunal nice video.
Git has never been so easy for me. Thank you so much for explaining this well. I have tried to learn git many times but often need to memorize the commands even the basic ones. But your wedding photograph analogy did the work. Now I understand everything nicely. Thank you so much.
The best yet. Scrolled almost whole youtube, but man everything was repetitive with same definitions, you brought new things to learn. Thank you for that!
but I felt like it went a bit confusing with "making forked project even with main project". Maybe it's just me, anyways great video nonetheless. Thank you!. I will try to review it again.
So much to say.. You nailed it! 🔥❤️ You recorded the video at 1st Aug and uploaded on the same day. That wedding example was so good.. Even a person from other stream/field can also understand this
Thank you so much, the way you say don't worry we'll cover that later, takes all worries away. Thank you so much for sharing your knowledge with us. The best DSA course so far!!!!!
Wow Kunal, this is the best Git tutorial on youtube. The added chapter makes it useful for everyone regardless of their experience with git. Kudos!!!!!
video summary maintaining the history of the project and storing our code list command(ls) it lists everything in the folder/file make directory(mkdir) make file/folder,etc. change directory(cd) changes the folder/file you are working on [basically like opening a folder/file] initializing an empty git repository (git init) the repository is like a project folder (-a) tag this basically shows all the hidden files {any file that starts with a .[ex:- .root] is hidden in mac and linux OS} to create a new file another Linux command is called touch [ex:- touch names.txt] you can enter text in the .txt file by using cat command {kunal uses vim but I am doing the whole hands-on practise on Linux terminal so i send the same command for you guys to look for} [ex:- cat > names.txt] (git status) it basically tells us everything that has happened with our folder every change, modification, or deleted files {it has the history stored remember? } now not everything is saved, the files are mostly untracked but we can do it by using the command [git add .] this command will basically save (dot means evrything in the current project directory that is currently not having its history or that is untracked are put together on the stage so that they can be saved or we can say tracked now) you can individually add the names of files if you don't want everything in folder to get updated for example (git add names.txt) and then check status by using (git status) command and this will allow us to maintain the changes, modification, etc... and save them now when we change,modify,add,remove something we basically comment it using (git commit -m"names.txt file added")this adds a comment to the specific action {doing this will clarify how we did the change} (cat names.txt) command displays all the contents of the file if you don't want any commits to be saved you can remove them by doing(git restore --stagged names.txt) this will remove the file from saved version and put it back on the unsaved part now to see all the history you need (git logs) command here you can see all the history you can not remove one commit from between, commits are built on each other like a tree so if you want to remove one commit you check the logs and see the commit you need to remove and select the commit below it and copy its hash -ID(whatever commit I copy the commits above it will get removed) use this command (git reset commit hash-ID) and then check the logs/status you can see now the other commits you wished to remove are in the untracked or unsaved area now if you have changes which you don't want to commit but neither can discard them so you keep them in a backstage area by using (git stash) command now if you want the files in the backstage to come at the staging area you wil use (git stash pop) command now{"now if you have changes which you don't want to commit but neither can discard them so you keep them in a backstage area by using (git stash) command"} these changes were on thebackstage but now you dont want them so in order to clean your backstage you do (git stash clear) command after doing this those changes will be gone now they can't come back starting with GitHub you can create a new repository and then link it to your project folder by using this command(git remote add origin link-of-your-repository) now if we do(git remote -v) it will show us all the repositories that are attached to our folder now to save your folders work on your repository you can do (git push origin master) command and you will be able to see all the files in the repository now to understand branches go on 28:57 in the video working with existing projects you cant directly make changes to anyone's projects you need to fork it doing this will not reflect in the main project until & unless the creator of the project gives approval for the project via the pul request which is explained later we need to fork the project of the organisation into our personal acc and then copy the link from "download code button" now in your desktop you can clone this repository by (git clone link)command this will basically download that folder/repository now you know that the origin you are in is your own acc and from where you have forked this (the community repository) is known as upstream url and you can add another url in the terminal by doing(git remote add upstream link) "origin" is your own/personal and "upstream" is the communities creting a new branch(git branch branch-name) checkout means shifting the focus from main to new branch if you have some code in your new branch of the clone repository and you want to transfer or we may say publish to the original communities main branch then you pull request you can see this easily explained on 41:00 - 45:30 command:- git push origin your-branch-name (you can't do "git push upstream your-own-branch-name" you will not be able to push it coz you don't have access to it) ONE BRANCH = ONE PULL REQUEST follow this its easier to merge and don't commit directly on main branch make a seperate branch every single time! MAKE SURE YOUR WORK IS DISTRIBUTED PROPERLY
lemme finish the remaining part Now the owner of the original file might have updated some of his work or by merging more of like adding some ones pull request , Now the main file or better say the UPSTREAM URL file has been updated but your main file is not up to date with that main file , Hence in order to be in update or in order to check what was updated into your branch name like the one you created first check out to the main branch " git checkout main ' now type " git fetch --all --prune " followed by " git reset --hard upstream/main " All of the recent updates which are present in the upstream will be updated to your origin , or better say the fork you had done got updated with new information added in the upstream and you can type command " git pull upstream main " it does the work tooo Now coming to another typical mistake where you had forgot to create a new branch for a new bug or something you are working upon and you saved it or pushed to your same branch name (for every new thing you work on you must create new branch but you saved it in your old branch but now you want to delete in such cases git log followed by git reset " code present in the log i mean you know right " now use the command " git push origin branch name -f " your previous commit that you have done would be deleted on the git hub and for merging the commits you want to git rebase -i code
what Iam suggest for those who are reading the comments in this video , please watch the basic linux commands in the same playlist after that come and watch this video. initially i did watched this video iam so new to cli and i skipped to linux commands lecture now iam again here now i can understand each and every commands .. follow this and thank me latter.
DSA + interview preparation playlist: th-cam.com/play/PL9gnSGHSqcnr_DxHsP7AW9ftq0AtAyYqJ.html
how did you transform your terminal?
@@inishkohli273 Even I have the same question, Do you got any solution?
If so please let me know too.
Thanks in advance.
@@akashreddyjammula you have to import iterm2...I tried hard but still couldn't manage to replicate...
@@inishkohli273 It's the linux terminal, you can customise it the way you want
The guests goes to the stage (staging area) , then the photographer took the photograph (commit) that saves in the history of the wedding 🔥🔥🔥, this was amazing
Keep in mind that to make changes to your text file using vim , Press i to get into insert mode and then press esc + :x to exit ; Basic Vim commands, you might get stuck ;
thank you bro
thank yo
thank a lott[you can use ctrl+left closed bracket if your esc isnt working]
thanks man
Really required 🙏🏼
Seen many git tutorials in the past. Had been using git for quite a long time now. But this is the best and most easy to understand tutorial I have seen so far. And I learned quite a few new things too, in the easiest way possible.
Thank You!
@@KunalKushwaha I think you have missed the configuration of the git
@@ksubramanyeshwara6169 bro configuration is simple ...no need to worries
@@ksubramanyeshwara6169 Mentioned in the description
@@KunalKushwaha Thank you so much
Took me around 4-5 hours to complete the video but truly they were worth it. I understood each and every one of the concept . Totally blown away by the content.
Bro how to get that desktop command how to do it. I installed git and what's the next thing to do?
@@jaishreeram8428 open any command line tool and a text editor like vscode. Create a folder on device and git init. Then run git commands.
@@jaishreeram8428first learn a bit from code with harry he told the steps in a very beginner friendly way
Honestly blown away by the content. Having already seen quite a few git/github tutorials in the past, I started watching the video with the intention of skimming through the content quickly but it was so engaging I ended up watching the whole video. None of the previous videos I've seen were this good, thanks for putting so much effort into the videos!
Sry i should be commenting after watching full video. But i can't control myself. After watching for just 11 min i am really happy that I could understand what u r teaching. This thing called github and its repository concept used to go a way abv my head bf. Now i am atleast able to understand. Thank you !
If you know about something and can explain it in terms that even a 3rd grade student can get it, shows that you truly understood it. Begin a professional, going through your content is fun and just love the way you break things into simpler ways. You are going big, brother.
Hope to help you in some way and help the community.
The example of photo clicking in a wedding is amazing. Awesome content
You are the only one who made me understand the entire git and GitHub only in an hour. I was stuck in an endless loop but one of my friends told me about this video and I am really thankful to him and you as well.
That expression at 24:00 says “that’s how I roll”❤️. Epic man. Hats off to your efforts. I’m halfway through but I’m thoroughly enjoying this.
Only video on YT which tells about Git & Github completely and in the most easy language 🔥🔥🔥
The picture clicking example was perfect for beginners like me. Really enjoyed the tutorial and understood the commands used. Kudos to Kunal for creating this tutorial.
I tried 5-6 or even more times to learn git and github but this day is remarkable for me because i finally learned all the concepts in a very clear manner just i have no more fear of all the git commands thanks kunal bhaiya 😁
he is using git for linux or git for windows
@@nishantarora6219 git for mac
Can u plz help me I'm stuck at commit for more than 2 days now it would be grt help if u can help me.
@@arpitanjana4994 sure
If i have forked a git project in local, after that I create a new branch to add new feature, but in b/w owner of the project make some changes, then where do i pull changes, in main or in new branch and if i pull changes in new branch does my changes got lost, pls explain ?
A simple note : at 16:28 kunal used vim text editor and opened names.txt file to write some text names and saved the file using (first press esc key then) ":x" hope it is more clear now :))
Thanks bro
Open source contributior 👏
Thanks bahi❤
Thanks bro
IT ASKS FOR AN ENCRYPTION KEY
I've searched alot about git watched tons of videos on youtube googled alot whenever i want to do something with my projects on git. I never understood concepts of stash, rebase and all. I would like to say "BEST VIDEO ON GIT EVER". Appreciate it! By the way excited to see more videos like this. Great initiative man!🙌👏
this is literally the best git and github tutorial ever, i was able to understand the complicated parts that other tutorials couldn't explain well. thanks a lot
just completed the video i had watched plenty of tutorials but finally understand with the help of your video thank you so much for your tremendous effort also you have explained it in very easy language exapmle that you have took of wedding was just amazing i am very lucky to be member of this community lot to learn from you, thank you
Kunal bhai you have ignite a flame in me to become a devops engineer. Thank you so much. I will work hard come what may as per your videos directions. Lots of appreciations and love.
watched mostly every popular git tutorial (Hindi and English both) but no one explained like you brother. Really appreciate your work and thank you for providing such great content,
Thanks a ton
Thanks Kunal .... for all the efforts ...that you have taken to provide world class content at zero cost.... for the same content many edtechs are charging lakhs of Rs. Gratitude, blessings and more power to you ... that you keep doing what you do best and making us all Indians proud....
The Smile on Kunal's face after completing every part of teaching is amazinggggg!
This man is the best had watched many tutorials in the past and no one explained me like this,starting my open source journey
Thank You
This is actually the best git / github tutorial
Thank You!
Second that ✌️
Yes it also increases the SEO part too with this 🔥
@@KunalKushwaha I am a window guy. And I face a lot of problem due to any tutorial taught on Linux or Mac. Can u suggest me some things to cope up with this.
@@amitgupta2890 I mentioned it already. When you download git, you can use git bash and all commands will work. Please read the description.
Straight from the heart -> One of the Best tutorial I've ever seen in my life...
Kunal you are seriously unbelievable
Finally the series has started🥳🥳
Sir you are the only one who made me understand the entire git and GitHub only in hour ...I was stuck in an endless loop but one of my friend told me about this video and I am really thankful to him and you as well ...thanku very much sir
Firstly I find this video too fast to grab. But I know kunal is giving a quality content so I start giving some efforts from my side too and continue watching it a couple of time and finally I understood everything and I find putting efforts from my side worthy.
So If you are finding the video too fast then be focused while watching and put some efforts from your side too because the content and explanation is outstanding.
Thank You! Hope you liked it
in my 2 years of exploring all the cse teachers on youtube i have never seen a teacher teaching git branching using visuals thanks kunal for doing so it made my way of thinking just broader!
Watching from Nepal, who has a dream to work on FAANG companies. Really excited for this course.
Can you help me? Maile ta kei ni bujhina. Git ma first time vayera hola
Very nice explanation by Kunal.
Whatever he has explained here is more than sufficient to also work in real world projects.
I am working in an IT MNC and I started using git 3months back and trust this video covers all the commands I have used so far.
We have multiple people working on same branch and stash comes handy that time.
Good work Kunal!
Thank You!
hi, can anyone help me with this - what did he press at 16:24 after adding names.
@@bhanumalhotra7553 :wq --to save and quit
press esc to enter the command mode first then, :wq and press enter
Hey Kunal, I am watching your video for the first time. And you won't believe that I am literally praying to god after watching this video that I was struggling in git and GitHub for the past 6 months.
I was facing many difficulties like merge conflict, fetching the upstream code and pull the code,and even working with the branches.
And after watching this video, I have tried every command, and literally, now I am crystal clear with Github, even with the branching best practices.
I really thank you a lot for creating this video and waiting for the entire course of DSA.
I learnt lot from you regarding java which killed my life of unemployment
Finally landed in a job and now in project.
You are really a best teacher of mine.
Thank You Kunal ❤️
Hey Congrats🎉 I am not good at maths can I still learn it?
The quality of the content, excellent presentation, and positive attitude make it really interesting and fun to watch.
The fact that the views are more than the channel subscribers is a testament to this :)
the simplicity of explaining the concepts. hatsoff dude
Amazing what an explanation I never find such an explanation ever. he took the real-life example of wedding and explain the git very easily.
Worth watching even after using git for 4 years.. We need this quality of teaching in industry also
Hey kunal, I just noticed there's no ad on this video....we really don't mind if there are any ad and you are earning from it.... we'll never skip ad on your channel since you are providing quality courses for absolutely free
you can invest your time on this video if you want to learn about Git and GitHub from scratch. wonderful way of explaining the concepts.
Your passion for teaching shows Kunal, hats off for this. Thank you.
I was looking for tutorials to learn git and git hub and i found your channel and i was just blown away by the content brother. As i have just entered in tech industry i got to know about lot of new career opportunities today for that thank you and looking forward to learn and help and grow in the community ..hope we will meet one day .
I liked how well you arranged java with data structures. I saw your dsa roadmap videos and that is by far the best roadmap and now you are teaching that by yourself. Thank you so much for this hard work that you are doing for students like us.
I had never seen a educational content this long in one sitting, you have got it bro! keep it up!
I'm very grateful and blessed to have a mentor like you, really appreciate your work.
same here, I too have watched plenty of git and GitHub tutorials but this one is exactly how a tutorial or explanatory video should be. Very well constructed wherein Kunal is not only teaching you how to perform various command but also clarifying you why would you need them at the first place. #respect brother
Thank you for this amazing tutorial! Nobody in youtube have been able to teach git and github the way you did.
Glad you enjoyed it!
di can you help me with one of my doubt ?
Those who are thinking that I not understanding anything from this video or you are been like he is using mac and I am on windows I want spoon feeding everything he write I just to to copy paste it.....
If this is your approach then you will learn very limited. I will just suggest you to stick to this video if not understanding see it again and again or you can google it also. Their are some commands on mac that is not for windows, that you can google it. By searching some thing on your own you will also end up with exploring very new things.
BTW great video kunal Learn a lot Thankyou so much 🙏
I've been using git for a while now, I still learned a lot from this git tutorial. Hands down one of the best git tutorial I've seen.
Man. you are really a good teacher. I feel very bad not knowing your channel till now. Thank you very much.
Aww....thanks man...
Your way of taking perfect examples to explain the concept is tremendous....
The wedding photographer example made it crystall clear for me to understand it so well that i would never even have to remember anymore..😁
Thanks Kunal bhaiya.....
for providing such amazing content that too for zero cost 🥺🤗...
# GOD Of DSA
Hi I am a 11yr exp java guy was searching for some free course on youtube for DSA came accross your course and i just feel love in it...all in one place that too with java...i must say you have done very awsome work...your name will be there on this earth as long as DSA will be asked in interviews...May Supream Lord Vishnu Bless You ✌🙏
Helped a lot! Was always scared of git and used to just contribute using GitHub but now I am confident about Git as well. 🔥 You and Eddie are so good at this!
are we supposed to practice along with the video? i watched and understood it but feels impossible to actually do. i'm new to this.
The best Git and Github tutorial ever. your turn this confusing terminologies into a simplier terms. thanks a millions
I was waiting for a proper guidance..🙏🙏 Now I got one.. 🤝🤝Best wishes.. My journey begins 👍👍
The bestest tutorial on Git and GitHub! Kunal you have a gift of making things so easy that any person from any profession can understand it! Can't wait for your next video on DevOps! Thank you.
You are most welcome
i had checked out a few other git tutorials.. honestly speaking this one is the best, he literally makes concepts crystal clear. No bogus talk.. nothing unnecessary straight up to the point. thanks kunal
Thank You!
Never seen such an eady explaination of Git. Thanks Kunal for making me understand this very easy!
Finalllyyy the day is here! Aug 1st All the best kunal kushwaha we hope that we will be learning a lot from your videos and your experiance
I never comment in general but I thought I should share this.. I've watched infinitely many videos in TH-cam, paid for courses on this topic but this is the best one... No words..
Thanks Kunal
I am watching your lectures at 1.5x speed and your "taa-daa"s sound so funny and enthusiastic.
Best Tutorial on Git I've ever come across. Thanks for this Kunal
Kunal bro you nailed it , literally you where on fire 🔥🔥🔥 this was just.....hats off!! This was definitely far better than some paid courses
My senior told me that Git and GitHub is very Important in Industries. I wanted to learn but was afraid by the Terms pull,fetch, rebase.
But saw this video and was not knowing when it got completed!!
Thanks for making this video!!
Finally the wait is over....here we go... thank you so much for your efforts...🙏🙏
This is the best tutorial on Git and GitHub so far. Thank You Kunal!
Hey Kunal, I always struggled with Git in interviews. Saw this video before my last interview and practiced along. Was able to do good this time. Thanks mate!
Edit: Got offer as well
Your explaination for branching and pull request concepts is Amazzing!! This is the best git / github tutorial ... Thanks a lot!!
This is the best tutorial for Git and Github I've seen so far !! Your concise, on point teaching method is really wonderful.. I understood most of the concepts clearly.. Thank you so much.. You have a really nice way of teaching things...
amazing way of explaining by comparing it to wedding photography, i had my git open and was following along each step, and in just first 15 minutes of the video i got a good grasp of the general environment of git and github, and how it is used to maintain changes in the repositories, thanks alot for the video, it is really really helpful.
most comprehensive and to the point. Awesome buddy. Keep it up!
Your analogy of the wedding picture makes it so easy to understand. God bless you man
chup
Bro literally loving the way you are explaining the things...your efforts are clearly visible man❤️🙌 really got goosebumps while studying due to excitement that what's going to be in next videos. It is going to be a long and wonderful journey⚡
Kunal you've made life of a beginners quite easy who aspire to be a Java Developer . Much Thanks !! and may you continue this
And finally the much excited series has started🤩🤩🤩🤩
Rakesh ... Java related stuff kab ayega ?
@@John12685 syllabus m likha hai
@@shashanksingh4708 Where is the Syllabus, Can you please share it, I could not find it on Discord or Channel Description.
09:05 Git is a version control system that allows us to save the history of our project and collaborate with others
18:10 Git status command helps to track changes that are not saved in the history of the project
27:15 Learn how to modify files, view project history, remove commits, and use git stash and git stash pop commands.
36:20 Branching allows you to work on new features or bug fixes without affecting the main branch.
45:25 Forking a project allows you to make changes without directly modifying the original project.
54:30 Always create new branches and pull requests for new features or bugs to avoid code mixing and make code review easier.
1:03:35 Keeping your branch in sync with the main branch of upstream
1:12:40 Merging Codes and Resolving Merge Conflicts
Thank you for this in-detail explanation, it is put across in a simple and best way possible. Have been struggling with understanding this and getting started with git and GitHub. Thanks for making my life easier.
if anyone else following this tutorial and doing this at the same time as me than you may encounter an error called "git: fatal unable to auto-detect email address", Kunal already mentioned it in the description, that you have to write these two commands first
$ git config --global user.name "your_name"
$ git config --global user.email your_email
after this, that error will get fixed, btw Kunal nice video.
Tip for windows user:
mac --> ls, windows -->dir,
mac--> ls -a, windows -->dir /ah
I am getting a could not resolve Head can u help me out ?
Using gitbash can also run Linux commands.!
@@kushaltanna5569 yes
Git has never been so easy for me. Thank you so much for explaining this well. I have tried to learn git many times but often need to memorize the commands even the basic ones. But your wedding photograph analogy did the work. Now I understand everything nicely. Thank you so much.
Applause to your effort 🥳keep going😁this good actions provide u all
The best yet. Scrolled almost whole youtube, but man everything was repetitive with same definitions, you brought new things to learn. Thank you for that!
but I felt like it went a bit confusing with "making forked project even with main project". Maybe it's just me, anyways great video nonetheless. Thank you!. I will try to review it again.
So much to say..
You nailed it! 🔥❤️
You recorded the video at 1st Aug and uploaded on the same day.
That wedding example was so good..
Even a person from other stream/field can also understand this
Thank you so much, the way you say don't worry we'll cover that later, takes all worries away. Thank you so much for sharing your knowledge with us. The best DSA course so far!!!!!
Best content 👏this is the only one needed for any tech enthusiast student !! Thank you for bringing this
Hands down the best git/github tutorial. Thanks Kunal.
It's indeed amazing explanation. Everything is clear and crisp. Can't thank you enough 👏
This is best GIT and GIT HUB course ever seen.. Kudos
Now the journey starts 🔥🔥🔥🔥
Bro how is your journey going so far?
bro journey?
@@sanketneema286 procrastination ,
Wow Kunal, this is the best Git tutorial on youtube. The added chapter makes it useful for everyone regardless of their experience with git. Kudos!!!!!
Bro i have the same profile in my other account
Amazing now we have started the journey of DSA
Your preparation playlist is awesome! Thank you for providing quality lessons and tutorials for youtube.
video summary
maintaining the history of the project and storing our code
list command(ls)
it lists everything in the folder/file
make directory(mkdir)
make file/folder,etc.
change directory(cd)
changes the folder/file you are working on
[basically like opening a folder/file]
initializing an empty git repository (git init)
the repository is like a project folder
(-a) tag
this basically shows all the hidden files
{any file that starts with a .[ex:- .root] is hidden in mac and linux OS}
to create a new file another Linux command is called touch
[ex:- touch names.txt]
you can enter text in the .txt file by using cat command {kunal uses vim but I am doing the whole hands-on practise on Linux terminal so i send the same command for you guys to look for}
[ex:- cat > names.txt]
(git status) it basically tells us everything that has happened with our folder every change, modification, or deleted files {it has the history stored remember? }
now not everything is saved, the files are mostly untracked but we can do it by using the command [git add .] this command will basically save (dot means evrything in the current project directory that is currently not having its history or that is untracked are put together on the stage so that they can be saved or we can say tracked now)
you can individually add the names of files if you don't want everything in folder to get updated for example (git add names.txt)
and then check status by using (git status) command and this will allow us to maintain the changes, modification, etc... and save them
now when we change,modify,add,remove something we basically comment it using (git commit -m"names.txt file added")this adds a comment to the specific action
{doing this will clarify how we did the change}
(cat names.txt) command displays all the contents of the file
if you don't want any commits to be saved you can remove them by doing(git restore --stagged names.txt) this will remove the file from saved version and put it back on the unsaved part
now to see all the history you need (git logs) command here you can see all the history
you can not remove one commit from between,
commits are built on each other like a tree so if you want to remove one commit you check the logs and see the commit you need to remove and select the commit below it and copy its hash -ID(whatever commit I copy the commits above it will get removed) use this command (git reset commit hash-ID) and then check the logs/status you can see now the other commits you wished to remove are in the untracked or unsaved area
now if you have changes which you don't want to commit but neither can discard them so you keep them in a backstage area by using (git stash) command
now if you want the files in the backstage to come at the staging area you wil use (git stash pop) command
now{"now if you have changes which you don't want to commit but neither can discard them so you keep them in a backstage area by using (git stash) command"} these changes were on thebackstage but now you dont want them so in order to clean your backstage you do (git stash clear) command
after doing this those changes will be gone now they can't come back
starting with GitHub
you can create a new repository and then link it to your project folder by using this command(git remote add origin link-of-your-repository)
now if we do(git remote -v) it will show us all the repositories that are attached to our folder
now to save your folders work on your repository you can do (git push origin master) command and you will be able to see all the files in the repository
now to understand branches go on 28:57 in the video
working with existing projects
you cant directly make changes to anyone's projects you need to fork it
doing this will not reflect in the main project until & unless the creator of the project gives approval for the project via the pul request which is explained later
we need to fork the project of the organisation into our personal acc and then copy the link from "download code button"
now in your desktop you can clone this repository by (git clone link)command
this will basically download that folder/repository
now you know that the origin you are in is your own acc
and from where you have forked this (the community repository) is known as upstream url
and you can add another url in the terminal by doing(git remote add upstream link)
"origin" is your own/personal and "upstream" is the communities
creting a new branch(git branch branch-name)
checkout means shifting the focus from main to new branch
if you have some code in your new branch of the clone repository and you want to transfer or we may say publish to the original communities main branch then you pull request you can see this easily explained on 41:00 - 45:30
command:-
git push origin your-branch-name
(you can't do "git push upstream your-own-branch-name" you will not be able to push it coz you don't have access to it)
ONE BRANCH = ONE PULL REQUEST
follow this its easier to merge and don't commit directly on main branch
make a seperate branch every single time!
MAKE SURE YOUR WORK IS DISTRIBUTED PROPERLY
lemme finish the remaining part
Now the owner of the original file might have updated some of his work or by merging more of like adding some ones pull request , Now the main file or better say the UPSTREAM URL file has been updated but your main file is not up to date with that main file , Hence in order to be in update or in order to check what was updated into your branch name like the one you created
first check out to the main branch " git checkout main '
now type " git fetch --all --prune "
followed by " git reset --hard upstream/main "
All of the recent updates which are present in the upstream will be updated to your origin , or better say the fork you had done got updated with new information added in the upstream
and you can type command " git pull upstream main " it does the work tooo
Now coming to another typical mistake where you had forgot to create a new branch for a new bug or something you are working upon and you saved it or pushed to your same branch name (for every new thing you work on you must create new branch but you saved it in your old branch but now you want to delete in such cases
git log
followed by git reset " code present in the log i mean you know right "
now use the command " git push origin branch name -f "
your previous commit that you have done would be deleted on the git hub
and for merging the commits you want to
git rebase -i code
I read all the comments. And i think that comments itself tells your coding and teaching skills. Great job, brother!
Clean tutorial. I have seen many videos, but Kunal is doing it the fresher's way.
Thanks a lot to be a good tutor!
This is 24k gold...The great way of teaching ❤️ #respect🙏
Strictly 24 K Content, Thanks Kunal for making the concepts so simple. Always a fun session to learn from you, Cheers buddy!
I WISH I CLOULD HAVE SEEN YOUR CHANNEL IN MY 10TH GRADE!😇 NEXT LEVEL LEARNING.❤🔥
This video is genuinely amazing 👏. Everything covered in the proper order and in the nice way 👍
what Iam suggest for those who are reading the comments in this video , please watch the basic linux commands in the same playlist after that come and watch this video. initially i did watched this video iam so new to cli and i skipped to linux commands lecture now iam again here now i can understand each and every commands .. follow this and thank me latter.
thanks bro for sharing, kunal rocked it
23:57 kunal gives a killer loook
yeappp, that was sharp!