Learning GitHub - .gitignore Files

Поделиться
HTML-код
  • Опубликовано: 11 июн 2018
  • This is the second video in the series on Learning GitHub.
    This video covers what .gitignore files are plus how and why you should use them.
    Learning GitHub Playlist: • Learning GitHub - Int...

Комментарии • 42

  • @fresh218
    @fresh218 2 года назад +18

    Your voice is astonishing, you could talk about the most random stuff and I would listen to the end.
    Great video! Keep up the good work

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  2 года назад +2

      I'm sure my students would tell you that some times I do talk about the most random stuff. 😀

  • @Deepsim
    @Deepsim Год назад

    Very easy to understand and follow! Thanks

  • @danmiller7709
    @danmiller7709 3 года назад +1

    Easy and clear! Thank you

  • @Colstonewall
    @Colstonewall 6 лет назад +2

    Steve, are you in the future going to do any Javascript Framework tutorials, such as Angular or React, etc?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  6 лет назад

      Chris Kavanagh I did a handful of Angular ones a couple years ago. I will be doing some React ones later this summer

    • @Colstonewall
      @Colstonewall 6 лет назад

      Cool. Can't wait. I already know Angular for the most part (still getting better at it), and I want to learn React sometime this summer. So, I'm looking forward to your React tut!

  • @erikaperley8102
    @erikaperley8102 5 лет назад +2

    Hi Steve, once I created .gitignore in Brackets, it didn't show up in my desktop Git nor even as a file when I searched my documents - how come?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  5 лет назад

      On OS X, any file, whose name starts with a period, will be a hidden file. If your .gitignore file is missing the starting period then you need to rename it. If you want to see those files in Finder then go to the Terminal and type the following:
      defaults write com.apple.finder AppleShowAllFiles YES
      Then, option + right-click on the Finder icon in the Dock and select RELAUNCH. Then you will be able to see the hidden files.

    • @erikaperley8102
      @erikaperley8102 5 лет назад

      Thanks for that. I'm feeling a little lost. This didn't work for me. I'll come see you in class today if we have a minute. I think it would be helpful to review where we're housing files, because I've noticed some inconsistency between MAD9013 and MAD9014 and it could be I'm not storing them in the right place. We were told once to rehouse and I think it might be confusing me. I can't find the .gitignore file in Finder even when I followed the instructions above.

  • @abenixz
    @abenixz Год назад

    professor steve what a voice

  • @sairaj6875
    @sairaj6875 Год назад

    Thank you for this video. On a side note, you sound like James Spader. :)

  • @Maccelerate
    @Maccelerate 6 лет назад +3

    I have a windows pc and don't know how to change gitignore to .gitignore via the cmd line. Any tips?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  6 лет назад +2

      Open the command line, navigate to the folder where the file is saved using the "cd" change directory command.
      Then use the copy command to create a copy of the file with the new name
      cp gitignore.txt .gitignore
      Then you will have the old name and the new one.
      You can delete the .txt one if you want.

    • @osamagamal495
      @osamagamal495 4 года назад

      Just create this file through your editor.
      Or use the Git Command: touch .gitignore

    • @foxjonesofficial
      @foxjonesofficial 3 года назад

      Just say j.gitignore
      And then edit the name and replace it with nothin

  • @teosurch
    @teosurch 2 года назад

    Thanks!

  • @kayax01
    @kayax01 3 года назад

    Hi, which role plays the "/" in .ignore then? It seems to me as not being useful but often you can see it in .gitignore...

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 года назад

      It indicates folder names as opposed to file names.

    • @kayax01
      @kayax01 3 года назад +1

      @@SteveGriffith-Prof3ssorSt3v3 Thanks for the answer! I rather meant "/name". What you mean is probably "name/"? At least this is what I've seen...

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  3 года назад

      @@kayax01 yes. It starts at the root level so the starting slash is optional

    • @kayax01
      @kayax01 3 года назад +1

      @@SteveGriffith-Prof3ssorSt3v3 Ah, OK! That's it! Thanks Steve

  • @zohaibmuhammad1993
    @zohaibmuhammad1993 Год назад

    thanks bro

  • @masha6467
    @masha6467 Год назад

    Hi sir
    There is any way remove conflicts by using gitignore files in the GitHub. I mean by adding any specific terms , we need to add in that gitignore file.

  • @abiodun6897
    @abiodun6897 2 года назад

    haha your voice is godly 😆👍

  • @jellymath
    @jellymath 2 года назад

    Would it prevent git from uploading the files to GitHub?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  2 года назад

      If they have not been added and uploaded previously yes

    • @jellymath
      @jellymath 2 года назад

      @@SteveGriffith-Prof3ssorSt3v3 Yeah! I'm trying to figure out how to "remove" them. I started ignoring them in Visual Studio but they just stay on GitHub, indeed ignored.
      I'm about to just delete them on GitHub.
      If it's not going to work, do you maybe know how to "remove" them? Or should it be fine the way I do it?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  2 года назад

      @@jellymath remove the files from your project locally. Then do your git add and commit. Push the changes to github.
      Then update .gitignore with the files to ignore.
      Then add the files back into your project.

    • @jellymath
      @jellymath 2 года назад +1

      @@SteveGriffith-Prof3ssorSt3v3 Oh my... After so much time, I got it! It's pretty weird that one has to remove the files locally though, but at least it's working...
      Thank you sooo much!

    • @floraarc9518
      @floraarc9518 2 года назад

      @@jellymath ​ @Steve Griffith - Prof3ssorSt3v3 ....C-... Can't you just add then commit the .gitignore by itself instead of trying to fiddle with local files? Good lord that sounds like a nightmare. Ohh wait, they were already on your Github? Welp, yeah no, you're going to have to remove that stuff lmao.

  • @pablocastro7952
    @pablocastro7952 3 месяца назад

    500th like

  • @foxjonesofficial
    @foxjonesofficial 3 года назад +2

    Three coms including me! Wut