1.7: git init and git add - Git and GitHub for Poets

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

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

  • @michapau3478
    @michapau3478 8 ปีที่แล้ว +242

    Sometimes when I get angry and frustrated about things not working concerning programming and computer staff I watch a video from Daniel. Even when I already know (or think to know) 80% of the stuff he's talking about- it makes me happy again. His presentation and spirit is just wonderful and gets you back in the flow of doing cool things.

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +75

      This comment makes me so happy.

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

      Awesome video dude bought the GITHUB Book and your video thought me much quicker then the book.

    • @The-dw1ms
      @The-dw1ms 6 ปีที่แล้ว +4

      @@TheCodingTrain Makes me happy as well.. now let's do the Rainbow Dance pleaseeee!!!

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

    This guy is winning at life, I really hope he knows how many people he has not only taught but warmed our hearts too.

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

      Some of us have been fortunate enough to have heard the coding train theme intro song

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

    You are the reason why they say being able to explain concepts is the true test to your knowledge. I have seen dozens of tutorials on YT on git and they all talk like they are experts and assume everyone is an expert which just makes learning harder. Your explanations are great, cannot thank you enough!

  • @PeteAshton
    @PeteAshton 8 ปีที่แล้ว +38

    Been struggling to see the why and how of Git for a few years now and you made it all make sense. Thanks! Also, my wife was watching over my shoulder and compliments you on your clarity. :)

    • @TheCodingTrain
      @TheCodingTrain  8 ปีที่แล้ว +7

      haha, so glad to hear, thank you!

  • @funnyhjk
    @funnyhjk 4 ปีที่แล้ว +2

    I remember learning GitHub at uni and being so confused and dumbfounded at it, and it always seemed so bloody BORING so I avoided it for ages. Now after graduating, I realised I should probably try and learn it so started watching these and oh my now GitHub is the best thing ever! After watching this, I now find GitHub so fun and interesting! I've always said that the best teacher is one who can make any subject, no matter how dull/boring it might seem initially, into something exciting, fun and interesting. This is why you're an amazing teacher Daniel, thank you so much!

  • @averybradley5195
    @averybradley5195 6 ปีที่แล้ว +26

    I see the rainbow dance is recursive by definition, well played.

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

      I tried to actually do the dance but had a stack overflow

  • @brendathompson3758
    @brendathompson3758 4 ปีที่แล้ว +2

    Your tutorials made me go from barely understanding git to actually feeling somewhat confident in my ability to use git now for my projects... and I've only known about git for like three weeks! Thankyou thankyou thankyou..... You really walk the user through every little working piece of this great puzzle, and now I actually have functional skills that I can use...

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

    Wow this was seriously the best git tutorial Ive seen in a while
    Congrats!

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

    You're a wonderful teacher. Git was a maze that looked complicated as heck. You made it accessible to me. I finally understand "git push origin master". Previously the words origin and master were confusing. Now it makes sense. Thank you!

  • @paralelmind
    @paralelmind 8 ปีที่แล้ว +35

    man, i just discovered you by mistake yesterday (via a youtube suggestion for snake game challenge), and watched couple of videos, for eg: all previous git poem videos) and i like your charisma, silliness and your teaching style :D. well done!

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

    I just love your enthusiastic and engaging style. And you don't mind showing when things go wrong - it is bound to happen, and I find I learn from these too. Thank you.

  • @ceroloyful
    @ceroloyful 7 ปีที่แล้ว +15

    "Messy whiteboard makes me very uncomfortable, but I think life will go on." Honestly, I had to stop here for few minutes to laugh. I love your lectures. Best part is that they are un-edited, like in real life, improvised and natural. Keep it up!

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

      Thank you!

    • @RabbiHossainRakib
      @RabbiHossainRakib 11 หลายเดือนก่อน +1

      and 6 years later I, Rakib Rh, was doing the same!!!!
      take love!

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

    I've been searching for a video for 2 days. This guy broke it down to me in 12 minutes. Other videos, imo, make the assumption that you're familiar with git bash and navigating the files. He broke it down from start to finish. Thank you for your humor and your ability to simplify this!

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

    Yet another example of the wealth of knowledge available on the net. Thank you for posting this content!

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

    i had so much confusion with this after simply googling. This was exactly what I needed, thank you!

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

    Git and Github are not intimidating anymore. Much Love to you

  • @nikoskalousis3523
    @nikoskalousis3523 4 ปีที่แล้ว +2

    This man knows a thing about teaching! Greets and respect!

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

    Thank you. Perhaps the most clearest explanation of this I’ve seen. Always been so confused by git and commands but you made me understand this so well.

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

    Thank you very much for this video, I have been trying to push files from my system onto github and watched other videos but some how ended up having to force a push onto github but this video showed where you could fall out when trying to push your files and it worked perfectly for me this time. Thanks again

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

    I just love how passionate he is. There hasn't been any single boring moment in any of his videos.

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

    i thought i would never learn how to use Git and GitHub... until i met your videos.

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

    Does anyone else feel guilty learning so much from him and not paying him? Take my money, Dan!

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

    still a crazy awesome video 3 years on. chu chu mr.Shiffman chu chu.

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

    Thanks for clearing up my confusions. Best Github series videos ever. Love your teaching spirit.

  • @Optimized_Finance.
    @Optimized_Finance. 2 ปีที่แล้ว

    I hope you are a real-life teacher. Good Job Sir

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

    Awesome. I got my repo full of processing sketches working thanks to these tutorials. This is very useful even if they're small projects, because it allows for users watching my livestream to try out my code on their end, so we can collaborate and exchange ideas.
    Thanks, once again, for all the work you do Daniel!

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

      +Seb S I'm so glad to hear this!

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

    Thank you!
    Its been a while since I have used GitHub and this helped significantly!
    Keep doing a great job!

  • @toni-sian
    @toni-sian 8 ปีที่แล้ว

    Hey Daniel, just wanna say thanks for uploading this series and explaining it so well. You've got a great teaching style!

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

    Deserve 10 upvotes just for the rainbow dance!

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

    The perfect video for what I needed to refresh with my git knowledge.

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

    Daniel is surely the best teacher when it comes to explaining Anything, most teachers would prepare their lessons and it would still be shit, while Daniel's lesson is 💯

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

    Thank you so much for making these tutorials interesting and fun! I hope your teaching style serves as an example for other people as well :)

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

    1:47 I.. I didn't know you can drag and drop a folder into terminal to put it's path... this is literally game changer tip... Thank you, this tutorial helped me a lot !!! Even if it's 4 years old.

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

    This is the best git tutorial! I enjoyed and learned a lot. Thank you very much:)

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

    2022, Still the best Git Intro

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

    This guy is like the Bob Ross of programming

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

    This guy is the Bob Ross of dev world

  • @jayc3631
    @jayc3631 6 หลายเดือนก่อน

    THANK YOU for the thorough explanation.

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

    You have helped me so much with your tutorials. You make it so easy to understand. Thanx a lot.

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

    Thank You so much sir. I really love the way you explain things, very simply and instrestling. God Bless You.

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

    This how our network Professor should teach us . it's less abstract

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

    it's been 4 years, but still really heplful

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

    Absolutely amazing! I love your energy

  • @ashish0120.1
    @ashish0120.1 2 ปีที่แล้ว

    Excitement is just on another level 😁👍

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

    Just to clarify. git status will not go to the remote to compare with your local repository. That's why changes on the remote will not be mentioned if you do git status. It only compares your local master with the downloaded local origin/master of the last pull or fetch. git fetch downloads the orgin/master locally without merging. git pull downloads the orgin/master locally and merges it with your local master.

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

      Thanks for clarifying the difference between pull and merge. Is it possible to use "git status" to compare two branches of the same repo in the local machine? Another question is that in github, I can fork my repo, or somebody else's repo. From a perspective of a local machine, a forked repo and a master repo are two different repos? Then I could clone both to my local machine, do changes to them, save&commit them and then I could merge those changes before I push them to remote?

  • @Cristian-xe7fj
    @Cristian-xe7fj 4 ปีที่แล้ว

    Man, you're a legend. Thank you for sharing your knowledge, from now on, I'm suscribed to your channel. Gonna check the other vids as well!

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

    This is really funny stuff: but it helps!
    What I like most: that it is for poets! Well, I will not store poems on Github, but I am not a developer either. Good presentation!

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

    You explain things very well!

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

    Thank you! You have made my day with these tutorials

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

    Most clear explanation, thank u.

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

    You are a silly man. Great video ... fun, entertaining, conceptually informative & easy to follow :)

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

    Daniel, you are a blessing to the Programming community, I couldn't possibly thank you enough....more power to your elbow.

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

    I love how happy you make yourself haha!! Thank you, such a helpful video! :-D

  • @YashRaj-ix1dp
    @YashRaj-ix1dp 4 ปีที่แล้ว

    You just proved to me that git can store non-code files. This is not silly for me!!

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

    I think I'm now a professional after this tutorial. LOL
    Thanks so much man!

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

    I wish I found this video 5 years ago.

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

    I love this man, am enjoying your course thanks

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

    your presentation help me understand more. tq so so much..

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

    Yeap! 2022 and it is still a great video!!

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

    Thanks for the video! Can you please tell us more about the convention to use the imperative mood in the header of a commit message?

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

    Thank u so much. I love your videos. They are really helpful

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

    He's like the Bob Ross of programming, try to tell me I'm wrong.

  • @maina_you_know
    @maina_you_know 2 ปีที่แล้ว +1

    i like this guys😃

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

    you are doing god's work

  • @joshinim.n9863
    @joshinim.n9863 4 ปีที่แล้ว

    Messy white boards make me uncomfortable but i think life will go on🤣🤣 amaazingg.

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

    your videos are really awesome man.

  • @RC-bl2pm
    @RC-bl2pm 6 ปีที่แล้ว +10

    This guy is goofier than a shithouse rat....but!...this little git tutorial has been a very clear and concise piece of work and I credit it with carrying me through this difficult leg of my coding journey. Mr Shiffman you're an impressive teacher. Thanks for this very excellent series. You've won me over I'll see what else you've got to teach!

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

    11:50 maybe another video about fetch and merge in the future? Useful for collaboration! Also a Jekyll video! Love the channel.

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

      Yes, agreed I should do these!

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

    You are the best ever , thank you for your videos !!!

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

    I’m self taught (iOS) and I don’t have anyone to collaborate/build a project with nor anyone to show me how to use git. I’ve only used git when necessary when dealing with heroku but outside of that I still save my files on an external hd (I know its stupidity). I’ve tried other tutorials on how to use git (which I’ve learned the basics) but nothing really explains how to use git and github in conjunction with each other very well.
    This video series best explains how to get your project up there. Now my stuff is safely in the cloud. Thanks Daniel!
    One thing to note. If your pushing up an existing project and it has large files you will get error that says:
    remote: error: Large files detected
    ! [remote rejected] master -> master (pre-receive hook declined)
    error: failed to push some refs to 'github.com/yourUsername/yourGitReoName.git
    remote: warning: File some/large/file
    remote: error: File another/large/file
    Following his tutorial definitely works up until this error occurs. I thought my projects still got pushed up excluding those files but they didn’t -the entire push was rejected.
    If you have that issue to fix the problem follow this SO answer, it 100% works (for the last command make sure to push to: git push -u origin master)
    stackoverflow.com/a/33363083/4833705
    But of course Daniel’s system works outside of the large file problem.

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

    I just want a tenth of his happiness.

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

      He's professional rather than ...

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

    Thank You So much with you Git Tutorials (RAINBOW) (POET)

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

    You are amazing, thank you so much. I hope if you can do java courses.

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

    thank you so much! subscribed.

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

    If it doesn't ask you for a login/password when pushing to GitHub, it probably means that your Github repo is public. It's not a private repository. It only ask for credentials if the repo is private.

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

    Hey, from a 1 to 10, how interested would you be on traveling and coming to my University in Colombia to give a few conferences on programming with processing?
    btw, we have like 4 classes that mainly use the processing core for pretty much everything

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

      +Juan Jose Cuadros I'd definitely be interested! Really hard to find the time to travel these days but please feel free to be in touch!

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

    so funny and easy to learn! haha LIKE

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

    How are you skipping the current like execution and going to next line at 6:08 and 6:32 ?

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

    Make a tutorial on how to deliver like you please

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

    Hi quick Q here. how does your mac local terminal command line know which website and account and repo to check in? in what stage established the link? Thank you.

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

    Most times I have to deal with Linux and its ilk, I just want to take the computer out back and give it the full Office Space treatment. Good to know I'm not the only one being genuinely surprised when it actually works for no reason (as opposed to failing miserably for no apparent reason which seems to be the default position). Begs the question though. A machinist working at lathe will not spend his morning assembly the lathe, spend three hours reading forum post because the receptacle company decided to deprecate their sockets and now the plugs no longer work, or adjusting settings that were perfectly fine the day before. Yet, in software, sure why not?

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

    What do you use for switching between recorder for greenboard to mac screen and vice versa?

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

    you are awsome man

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

    Thank you man

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

    Great tutorial! But whenever I do the push command to the main branch of my repo, it shows this,
    error: failed to push some refs to ''
    What do I do now? I'm not able to push my local repo to GitHub. Please help.

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

    I am stuck in some of my exercise with online git repo. How can I get help on it ?

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

    can you tell me please how to deal with if i create a README in remote ?
    after creating README in remote if i want to push my files from local repo ... its showing an error !
    its telling me to first pull all files from remote to local repo, then push them all togeather ??????

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

    How do you do the same with ssh?

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

    git push -u origin master
    why is this there..?
    what does mean of this ?
    thanks

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

    If I am updating 2 files at a time, but want to commit only 1. How could I give that commit

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

    Is the keyboard ok? You did kinda hit it hard

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

    Thanks!

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

    but what's the advantage of using CLI over GUI for using github?

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

      when you dont have gui, it works :)

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

    his stomach has too much redbull INIT....
    thank you tho

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

    9:50 new repository without readme

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

    ugh, when i enter "git status" all i get is this:
    "git" is not recognized as an internal or external command,
    executable program or batch file.
    and no mattter what i enter, this is the message i receive...

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

    Are there other remotes besides Github?

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

      There can be! (for example a server where you might deploy an app)

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

      BitBucket.org, GitLab.com, or you can also host your own GitLab or Gogs (gogs.io) servers.

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

    Can you reupload 1.6? or just tell me the commands to get repisotories to my pc and compile them there?

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

    what happens to .git file which is created in my system locally. If its there I cannot create second git directory in same folder plz help

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

      Why do you want to create a second git? Git keep track of all changes. Having a second git, even if it is allowed (idk), it will be keeping track of the same changes. Now, how do you envision these two git files being different? The whole concept of git is that you can modify, keep track of community changes, push, pull. What you want to do is to commit the changes and then make sure your local repo is update by pushing constantly to your origin and pulling constantly as well to keep track of changes by any of your mates. Something that Daniel didn't mention in his videos is the importance of pushing/pulling constantly in order to: keep track of changes in an orderly manner and resolve conflicts quickly. It is way way better to do 10 pushes of small changes instead of one single push of a big change.
      I don't know if Dan keeps track of all these posts. You are better off asking in a forum like forum.processing.org or in stackoverflow.

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

    What if i make a branch on the Github ,how can I pull it back to my laptop.

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

      "git clone github-weblink-to-your-branch.git" will create a directory in your current directory and download the content of your hit to that directory. Based on the link, it can be any branch.