Git Tutorial for Beginners: A Quick Start Guide

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 พ.ย. 2024

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

  • @abanoubmerian3958
    @abanoubmerian3958 3 ปีที่แล้ว +11

    This is not just a tutorial, it's a Masterpiece of how things should be explained ... I'm really speechless and impressed

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

      От радости ш тттт

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

    Old tutorial. Still relevant and excellent. Excellent straight forward, hands-on, practical walkthrough and explanations for beginners. Thanks Tim.

  • @robrick9361
    @robrick9361 6 ปีที่แล้ว +3

    Listing all the commands on the side like that, makes this video a great memory aide.
    I frequently come back just to reread the list.
    A+ for thoughtfulness.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +1

      Thanks for the feedback. I might start doing that more.

  • @stealthworks777
    @stealthworks777 6 ปีที่แล้ว +2

    This is probably one of THE best tutorials I've seen on GIT. Assumes no prior knowledge and walks you through step by step. keep up the good work Tim :)

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      I appreciate the kind words. I'm glad you found it valuable.

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

    0:00 - DIY without GIT
    4:15 - GIT goals
    5:53 - Getting started
    18:39 - Changing the files
    21:19 - Adding new files
    25:25 - GIT branch
    28:47 - Deleting files in branch
    32:56 - deleting GIT branch
    34:59 - Making changes in GIT branch and merging changes
    45:21 - Merging changes between multiple branches
    57:51 - Remote GIT (Bitbucket)
    1:07:45 - View commits
    1:13:31 - pushing commits to remote
    repository
    1:18:59 - joining a project form remote GIT
    1:28:10 - summary

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

      Thanks! I added it to the description.

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

    @Tim, you kept it very simple...no beating around the bush, straight to the point. Loved your tutorial!!!

  • @larrycullen9117
    @larrycullen9117 7 ปีที่แล้ว

    After watching multiple tutorials that all seemed to target just the distributed environment, I was getting very frustrated. Your tutorial is by far the best I've viewed. It gave me a great start using git in a non-distributed way, which is what I needed to do. Thank you so much for creating this tutorial and making what seems to be a complex subject much more easily grasped.

    • @IAmTimCorey
      @IAmTimCorey  7 ปีที่แล้ว

      I'm glad this tutorial made learning git a bit easier for you. Thanks for letting me know.

  • @MehdiGlz
    @MehdiGlz 8 ปีที่แล้ว +2

    Thanks a lot, great explanation!
    by the way "git add ." does add deleted files, must be from newer version
    For any other total beginners to bash like me, if you noticed how when he did the "git commit" notepad opened up, but for you the file got opened in the command line, you can set it up to open notepad like this:
    git config core.editor notepad
    or adding the pathfile to your prefered program, for example:
    git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin" (the last parameters are running options for notepad)

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

    I'm 17 minutes in and it's already an excellent tutorial and perfectly presented set of contents. Super visual explanation of everything step by step. Tim you are a beast ! Thanks ! I'm your new biggest fan lately !

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

      Glad it was helpful!

  • @davidsierra3300
    @davidsierra3300 6 ปีที่แล้ว +1

    Watched on 1.25x and I can honestly say this is the best Git tutorial out there, subbed!

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      Awesome! I'm glad you found it so useful.

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

    You are an excellent author and always do a great job presenting the material your in video tutorials. Always very clear, practical and concise. Nicely done!

  • @andergarcia1115
    @andergarcia1115 8 หลายเดือนก่อน

    I deeply appreciate your timeless insights and willingness to share them. Looking forward to checking out your videos! Thank you.

    • @IAmTimCorey
      @IAmTimCorey  8 หลายเดือนก่อน

      You are welcome!

  • @koitaki
    @koitaki 8 ปีที่แล้ว

    I'll second the appreciative comments below that give this tutorial a big wrap Timothy...very clear, concise, informative and useful, many thanks!

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

    I'm a mech engineer by trade and i'm trying to learn more flexible coding languages rather than using things like Matlab. Your videos are amazingly clear and always answer the questions I'm thinking as I watch your videos. Super well done and thank you.

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

      That’s great to hear!

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

    Seeing that after seeing your new videos, shows the long path of making this channel more evident. Great Video. Again Thanks for the content

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

    Thank you so much Tim. I have watched tonnes of videos before, but there is no match to yours. Keep uploading new videos...... Many cheers to you.

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

    The absolute best video tutorial on git for beginners! Tim, thank you for your wonderful work. When watching your videos you can literally feel how much you care about teaching, you are explaining so thoroughly and making sure it's detailed and structured.

  • @JonathanWieben
    @JonathanWieben 8 ปีที่แล้ว

    I wil be attending a coding bootcamp in a few weeks and for preparation i wanted to learn git. I watched a few tutorials and introductions and got an idea how git works. But your tutorial was different and made me REALLY understand what I can do with it. So easy to grasp yet learning a lot new stuff.
    This was awesome. Thank you so much!

  • @pujarajat
    @pujarajat 7 ปีที่แล้ว

    Thanks Tim Corey - i had for years been avoiding moving from SVN to GIT and your tutorial was absolutely fantastic and simple to understand in how you built up the concepts. Now I love GIT - all thanks to you. Please keep it up - your style of instruction is really good.

    • @IAmTimCorey
      @IAmTimCorey  7 ปีที่แล้ว +1

      That's great! I'm glad I was able to help you understand git. It is an amazing tool, it is just hard to initially understand.

  • @parkerd3915
    @parkerd3915 8 ปีที่แล้ว

    Okay. I allways dimissed git since I have not had the time but last night I watched your calm but clear and foward video and today after about 45min. I have moved to git at work with our main onlineshops. I use Atom btw. wich works great. The only thing I was missing is that git may ask you "Tell me about yourself" to set a username and mail and there was a bug. If anyone encounters it as I did, just google it. The sequence is key. Anyways, thank you a lot, Timothy, you answered a lot of questions others forget to mention.

    • @parkerd3915
      @parkerd3915 8 ปีที่แล้ว

      Working with it right now and yes, I do find it beneficial. I saw you make tutorials for C# aswell. I'll recommed your chanal to a friend. If you make every tutorial like this, he will soon be the new champ in his new company.

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

    Great video. I didn't understand everything the first time that I watched it, but after getting more hands-on practice using git in Visual Studio, I watched it a second time. This time it clicked, and I got a better understanding regarding some of the details, and what is going on under the hood.

  • @bujin1977
    @bujin1977 6 ปีที่แล้ว

    I'm a bit late to the party, but having now watched this video, I think I now feel pretty comfortable with using Git! That made a lot of sense! Thanks.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      Awesome! I'm glad you were able to get a handle on it.

  • @khurram645
    @khurram645 7 ปีที่แล้ว

    I have been using Git for couple of years for several projects, but this tutorial is an awesome one to learn some basic stuff. Great Job!!!

    • @IAmTimCorey
      @IAmTimCorey  7 ปีที่แล้ว +1

      Thanks. I am glad you found it helpful.

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

    Wow - Thank You! This really helped me use git better... even after years of being an independent dev, I can now work better with teams

  • @AnaSas741
    @AnaSas741 7 ปีที่แล้ว +1

    Very big plus for clear explanation what are branches for and how actually use them!

    • @IAmTimCorey
      @IAmTimCorey  7 ปีที่แล้ว

      I'm glad it was understandable. Branches are a big deal in git. You lose a lot of benefits of git if you don't know how to use them.

  • @g.5214
    @g.5214 8 ปีที่แล้ว +1

    Great tutorial. Couldn't take my eyes of the screen for 90 min. I know there is much more to git, but his really helped me get started.

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

    For the "git commit" command in 17:50:
    If the notepad file does not open up and the same message appears in the console. press "esc" then type ":wq".
    It is the same as saving and exiting the notepad file

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

      Thanks for the suggestion.

  • @xahidbashir
    @xahidbashir 8 ปีที่แล้ว +1

    Keep up the good work. For me Git was a mystery but good teachers always make mystery easy on eyes. Thanks a lot.

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

    I think it is very good time to update this lesson to newest versions of Git and Visual Studio :) I would love to see it updated. And I think, that not only me.

  • @DrewNorman
    @DrewNorman 6 ปีที่แล้ว

    By far the best git tutorial on the web. Nice job bro

  • @sujoybanerjee9302
    @sujoybanerjee9302 7 ปีที่แล้ว +2

    one of the best tutorials to be found on the internet. Super awesome super easy : cool

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

    still the best video on git I have seen.

  • @delinquense
    @delinquense 7 ปีที่แล้ว

    Nice job, Tim. The best I've seen yet. Thanks for taking the time to make such a clear explanation.

  • @jayabiswas3259
    @jayabiswas3259 7 ปีที่แล้ว

    Fantastic Job Tim. Very helpful.

  • @crenieprabakaran5487
    @crenieprabakaran5487 6 ปีที่แล้ว +2

    Great Tutorial. Best one I've seen so far.

  • @tapasu7514
    @tapasu7514 6 ปีที่แล้ว

    Thank you Sir for posting this. Best Git tutorial on youtube.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      I’m glad you enjoyed it.

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

    Great video. I'm glad I opted to sit through this and try it out rather than skip it. Thanks :)

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

      Excellent! I'm glad you enjoyed it.

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

    Seriously good presentation, an exemplar of how tech training videos should be done

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

    I can only repeat what others have said before me, great tutorial I'm using git from now on.

  • @janivimal
    @janivimal 6 ปีที่แล้ว

    Tim once again excellent intro to git. I am sure you would have more indepth video on how to handle when there is clash. Thank you for sharing this.

  • @luisforque
    @luisforque 7 ปีที่แล้ว

    Nice tutorial, very easy to understand. One suggestion would be to have some sort of visual representation of what is going on on the branches, their graph. Also, more info on resolving conflicts, and seeing the commit history inside git.

    • @IAmTimCorey
      @IAmTimCorey  7 ปีที่แล้ว +1

      I'm working on a git course now. It will incorporate these suggestions. Thanks.

  • @lynndemarest1902
    @lynndemarest1902 6 ปีที่แล้ว

    GIT is so powerful it's scary, but this video goes a long way toward ameliorating the fear. What are the best practices for preparing for a GIT failure of some kind? Do you have plans to do a more advanced video that will explain more about exactly how GIT performs this magic? (Or do you know of some existing ones?)

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      I don't have any videos yet but I intend to in the near future.

  • @danielvelez1233
    @danielvelez1233 8 ปีที่แล้ว

    One of the best Git tutorials, thank you!

  • @strontium99
    @strontium99 6 ปีที่แล้ว

    Thank you Tim for another fantastic tutorial. I was always mystified by Git before watching this. I will definitely be using it from now.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      I am glad it cleared things up for you.

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

    Hi Tim,
    Thanks a lot for the tutorials. These are really helpful. Could you please create a detailed tutorial on working with Team Foundation Server (TFS) Source Control System specifically folder mapping, check out , checkin and merge process. Please share the link if there is already one.
    Thanks.

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

      I can add the suggestion to the list. I'm not sure if I will get to it or not. TFS is a style that is going away.

  • @inelpandzic
    @inelpandzic 9 ปีที่แล้ว

    I watched plenty git tutorials in the last week or so, and this is probably the best so far.
    Very simple explenations, very easy to understand, thank you very much!
    Can you make a MVC 5 web app from start to finish video like you did the one on Win Form (Creating a C# Application: From idea to finished product) ?
    I think that would be the best MVC 5 tutorial on youtube (and believe me, I think I watched them all :))
    Once again, you are a great theacher, and I ask God One and Only to give all the best for you and your family.
    All the best form Sarajevo, Bosnia and Herzegovina

    • @robertanic7799
      @robertanic7799 9 ปีที่แล้ว

      +Timothy Corey This is great tutorial. I wish if you could make more C# example tutorials like the one Creating a C# Application: From idea to finished product. For example, how to make classes with other example, and maybe you could use grid control to display data. Note: Windows Forms are much better and easier to work with. Thanks

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

    Always great content, many thanks Tim

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

    i wish i could say more than a THANK YOU, this is a perfect job done

  • @NMB85
    @NMB85 8 ปีที่แล้ว

    awesome tutorial, thanks a lot. Im completely new to all this and i was never lost.

  • @padmavathikotra24
    @padmavathikotra24 7 ปีที่แล้ว

    Excellent ! Easy to understand .Very helpful for me.

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

    Thank you Tim, very clear and detailed explanation. It just made my learning very easy.

  • @mmushtaq908
    @mmushtaq908 6 ปีที่แล้ว

    Really amazing tutorial. It covers almost all the things and nicely explained. Really loved it..

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +1

      I am glad you enjoyed it.

  • @SuperPizdolizac
    @SuperPizdolizac 6 ปีที่แล้ว

    i can see you have upgraded you microphone quite a bit since then. tnx for the video. always good stuff :)

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      I try to continually improve.

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

    Many Thanks, very good introduction. You are a very talented trainer!

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

    This video is timless, very helpful.

  • @sameergirkar
    @sameergirkar 8 ปีที่แล้ว

    Thanks a lot great descriptive and very good step by step explanation.

  • @praneeth2005
    @praneeth2005 7 ปีที่แล้ว

    Very useful demo. Very good explanation

    • @IAmTimCorey
      @IAmTimCorey  7 ปีที่แล้ว

      I'm glad you found it helpful.

  • @JoelQO
    @JoelQO 9 ปีที่แล้ว

    Great work with this tutorial. You've got talent with this.
    Thank you very much

    • @robertanic7799
      @robertanic7799 8 ปีที่แล้ว

      +Timothy Corey Git Hub has BIG problem. It is not free. If you use Public repository and dont want to pay, than all can see your project. Why would someone work and give it for free?

  • @stefanoserafini78
    @stefanoserafini78 7 ปีที่แล้ว

    Great video and excellent explanation, you are the best!

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

    Tim -- Do you recommend using the source control features built into Visual Studio? As opposed to command line with Git Bash and /or UI such as GitHub Desktop?

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

      I recommend learning the command line but then using the visual tools provided (in Visual Studio, standalone, etc.) There will be times you need to use the command line, plus knowing how the command line operates will help you better understand the GUI tools.

  • @ronaldjohnson4470
    @ronaldjohnson4470 8 ปีที่แล้ว

    Great tutorial Timothy.

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

    even from 2014 it still helps

  • @balamurugana8731
    @balamurugana8731 7 ปีที่แล้ว

    It explains everything about git in detail, thanks

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

    You really do know how to teach...keep it up.

  • @vidyasagarpamula794
    @vidyasagarpamula794 6 ปีที่แล้ว

    Thanks@Tim. Excellent tutorial 👌.

  • @janwong5766
    @janwong5766 7 ปีที่แล้ว

    Some update for 28:55, In Git version 2.15.0, it is able to add those deleted file by typing "git add ."

  • @RossYlitalo
    @RossYlitalo 6 ปีที่แล้ว

    Very brilliantly done! Thank you very much!

  • @mkashif31
    @mkashif31 7 ปีที่แล้ว +1

    Brilliant Tutorial, really helped me a lot. Thanks

    • @IAmTimCorey
      @IAmTimCorey  7 ปีที่แล้ว +1

      I'm glad the video was able to help you. Thanks for letting me know.

  • @ennigmatick
    @ennigmatick 8 ปีที่แล้ว

    Thank you so much for making this video! It's tremendously helpful :)

  • @anuragkumar4327
    @anuragkumar4327 6 ปีที่แล้ว

    commendable and soothing to understand

  • @JoshyHJoshy
    @JoshyHJoshy 7 ปีที่แล้ว +1

    Hi Tim, Recently I have had to use SourceTree. Every time I realize I have to undo stuff after a commit (or after a few commits) and just go back to the state of the project at a certain revision, I assume that I can "simply roll back" because I use git (via SourceTree) but when I double click on any commit to check it out and take it from there, I always get a warning message that this action would create a detached head, etc... I have seen a lot of posts that deal with hard resetting, etc... but I wonder how would one just roll back without causing problems such as detached head then, and not having to reset all the previous commits? Thanks

    • @IAmTimCorey
      @IAmTimCorey  7 ปีที่แล้ว +1

      I think the best option here would be to a "git checkout -b " That will create a new branch that only has up through the specified commit. I typically use the command line so I'm not sure how SourceTree does it but that command should help you out.

  • @mau_lopez
    @mau_lopez 7 ปีที่แล้ว

    Great tutorial, thanks a lot Tim, really helped me. Could you comment on what Forks are and just mention the commands related with them? or Do you have a tutorial on them? Thanks a lot once again !

    • @IAmTimCorey
      @IAmTimCorey  7 ปีที่แล้ว +1

      I don't have a tutorial on it, but forks are actually not too complicated. Essentially it is just a copy of a repository. So what you do is this: if you can see a repository but do not have access to make direct modifications (most of Github works this way), you make a fork (a copy of the repo onto your profile that you then have access to). From there, you can make changes to your copy. When you are finished making changes, you go to the original repository's site (the one you had read-only access to) and you make a pull request. Basically, a pull request is just a link to your repository and any notes you want to attach (like "I fixed bug 123 for you"). The owner of the original repository can then review your changes and merge them into their repository, they can ask you to make further changes, or they can reject your changes. That's all it is. Does that make sense?

    • @mau_lopez
      @mau_lopez 7 ปีที่แล้ว +1

      Absolutely makes sense Tim, now I understand. Thank you very much for your prompt answer and your time, it is great ! I am sure that with your unique way of explaining things, you saved me some time here. Best regards.

  • @janwong5766
    @janwong5766 7 ปีที่แล้ว

    After watching several tutorials,this is one of the best tutorials.Thanks for your clear explanation. but I have one doubt, if I have a software with multiple software versions, what should I do if I am going to use Git for versioning control, Should I put every earlier version as branches and the put current release as master?

    • @IAmTimCorey
      @IAmTimCorey  7 ปีที่แล้ว +2

      The most common thing to do in this situation is to tag your releases (git-scm.com/book/en/v2/Git-Basics-Tagging). Essentially, whenever you are saying "this commit represents the last code to go out the door for this particular release" you add a tag. You don't need a new branch. So you have one branch but lots of tags that identify where the code was at each release point. If you needed to patch an older release without moving them to a newer release, you could check out that commit into a new branch and apply the patch. You could then merge that change into master or you could leave it alone.

  • @jjvanmeerlant
    @jjvanmeerlant 6 ปีที่แล้ว

    Very nice, easy listening tutorial, well done, thanx

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      I am glad you enjoyed it.

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

    Great Tutorial. Thank you for you time and you will be blessed (y)

  • @ajeshjs5425
    @ajeshjs5425 7 ปีที่แล้ว

    Excellent tutorial, great help, thanks a lot for sharing.

  • @luigizambetti18
    @luigizambetti18 6 ปีที่แล้ว

    Hi Tim, in your day life of developer, you use/prefer TFS or Git as souce control and build integrations?

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +1

      Definitely git. Hands down. It is easier to work with, it is easy to maintain, and easy to move from one host to another. Plus, most of the industry uses it.

  • @marcobislick6069
    @marcobislick6069 6 ปีที่แล้ว

    Thank you, this has been very useful to get me started.

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      I am glad I could help.

  • @lycagos1278
    @lycagos1278 6 ปีที่แล้ว

    best teacher ever

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

    Thank you as always for the great content.

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

    What a great teacher :)

  • @igorOK071
    @igorOK071 6 ปีที่แล้ว

    This tutorial is truly awesome!

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      I am glad you found it so helpful.

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

    Is it common practice to delete finished branches? Are there any cons to doing so?

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

      Yes it is an there usually isn't a con to it. Once you have merged your changes into master, you can safely delete the branch because you haven't lost anything. Everything is in master. The only dangerous thing is if you delete a branch that has not been merged into master (or another branch). Then those changes will be gone and there isn't a good way to get them back (there is a possibility of getting a deleted branch back but you shouldn't plan for it).

  • @LudoBeckers
    @LudoBeckers 7 ปีที่แล้ว

    Around 17:30 where you explain git commit I get an error.
    Gvim is my text editor, and it opens up after typing "git commit", but I also see "Aborting commit due to empty commit message." and a new line "(gvim:21814): GLib-GObject-WARNING **: cannot retrieve class for invalid (unclassed) type ''"

    • @LudoBeckers
      @LudoBeckers 7 ปีที่แล้ว

      I'll study that to solve the error, thanks.

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

    thx for your work but need here little help im starting new c# and i dont know what video of yours should i start can you just point me at the right path to begin

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

      Start here: Full C# Tutorial Path for Beginners and Everyone Else (th-cam.com/video/LUv20QxXjfw/w-d-xo.html)

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

    1:18:16 Something like that is better visualized on GitHub. On Line 2 you added a Line Break to it, before that is was EOF ;)

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

      Back then GitHub didn't offer free private repos like BitBucket did, which is why I demonstrated it on BitBucket. Now I would probably use Azure DevOps.

  • @damienk777
    @damienk777 7 ปีที่แล้ว

    Is it possible to use git commands in normal cmd? I've seen some tutorials using the Windows cmd without using the git CLI.

    • @punktdotcom
      @punktdotcom 7 ปีที่แล้ว

      Is Cygwin not such a tool?

  • @A-M-F-A
    @A-M-F-A 6 ปีที่แล้ว

    Excellent explanation. When I do git push -u origin master nothing happens and the cmd seems to "freeze". What can be happening? (I have to do Ctrl + C to cancel)

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      Do you actually have an origin set up?

    • @A-M-F-A
      @A-M-F-A 6 ปีที่แล้ว

      @@IAmTimCorey Yep

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

    Thanks for clean explaination

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

    When committing for the first time 16:36 if you get the following error:
    fatal unable to auto-detect email address .
    You can solve this by setting your email address by typing:
    git config --global user.email "you@example.com"
    Then try committing again and it should work.

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

    Is this still a relevant resource for learning GIT?
    Because it is from 2014
    Thank you in advance,
    Vasko

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

      Absolutely. The commands are all still the same.

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

    You are the best. Thanks for this

  • @baseidon
    @baseidon 6 ปีที่แล้ว

    Best git tutorial! Thanks!

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

    You are a gem man.

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

    Amazing video! Thank you!

  • @AMIRKHAN-dm2fm
    @AMIRKHAN-dm2fm 5 ปีที่แล้ว

    Kindly Make a tutorial of Git for Visual Studio with Github

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

      I will add it to the list. Thanks for the suggestion.

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

    Ok I get it, Git is designed to be obfuscated and to seem needlessly more complicated than it needs to be. The question is, what is a good alternative to not having to deal with Git?

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

      It isn't designed to be obfuscated or to seem complicated. Actually, once you understand what it is doing, most of the commands are incredibly intuitive. However, what it is doing is incredibly complex so sometimes there are complex things you need to do to make it do what you want. As for the alternatives, Git is the industry standard. You need to know it if you want to be viable in the market. There are definitely places that don't use it, but they are quickly becoming the minority. Besides, Git is the best solution for source control we have and source control is imperative.

  • @kriiistofel
    @kriiistofel 6 ปีที่แล้ว

    I have some problem, I couldn't find the solution on the web. I want Git to load my repository automatically after Git starts. How can i set that?

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว

      I am not sure what you are looking to do. The phrase "after Git starts" is interesting. Git doesn't really run. It just sits there until you call it. So for example, if I open up git bash at the root of my project, that is essentially just a command prompt. In fact, my command prompt acts just like the git bash. It is only when I issue a command like "git status" that git is called and it does something.
      You could do a batch statement so that when you called a certain command, multiple git commands are issued at once but I don't see that as helpful. For instance, if you want to be sure that your local copy of the repository is up to date with the remove version, you would want to run a few commands but you need to make decisions based upon the results. For instance, I would first start with "git status" to identify the state of my local repo. If I have uncommitted files, I would then run a commit command or a stash command, depending on what I wanted to accomplish. If there were no uncommitted files (or after I had handled them), I would run a "git pull". That would bring in the commits from the remote repo and it would merge the changes with my local commits. If there were differences that caused a merge conflict, I would need to deal with those issues next and create a merge commit. As you may notice, none of these steps should be done blindly. That is why the git tools out there don't do these tasks automatically and why you cannot find out how to do this yourself.
      If I misunderstood your question or if you have further questions, please let me know.

  • @deveagle6193
    @deveagle6193 6 ปีที่แล้ว

    I've looked and looked, and can't get passed this error when trying to push for the first time with . I replace "origin" with my repository name . Here is the error I keep getting when trying to push: Updates were rejected because the tip of your current branch is behind its remote counterpart. Integrate the remote changes.
    Any ideas?

    • @IAmTimCorey
      @IAmTimCorey  6 ปีที่แล้ว +1

      It seems as though your remote branch has been updated since your local branch was updated. Do a "git pull" first and merge the changes locally, then do your "git push".

    • @deveagle6193
      @deveagle6193 6 ปีที่แล้ว +1

      IAmTimCorey - yep, that worked. Thank you, Tim!

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

    If any can help! How can i "Push" new branches to the remote "origin"? In git-demo if i create new branch "Dev" how can i push dev branch to to remote repo?

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

      If you have set your origin as your default upstream (this happens by default if you clone from a repo) then you would just do a "git push". If you have not set it as your default upstream, you would do a "git push origin dev" to push to the dev branch of origin (even if it doesn't exist yet).