Learning GitHub - .gitignore Files

Sdílet
Vložit
  • čas přidán 11. 06. 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...

Komentáře • 42

  • @fresh218
    @fresh218 Před 2 lety +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

  • @danmiller7709
    @danmiller7709 Před 3 lety +1

    Easy and clear! Thank you

  • @Deepsim
    @Deepsim Před rokem

    Very easy to understand and follow! Thanks

  • @erikaperley8102
    @erikaperley8102 Před 5 lety +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  Před 5 lety

      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 Před 5 lety

      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.

  • @Colstonewall
    @Colstonewall Před 6 lety +2

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

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  Před 6 lety

      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 Před 6 lety

      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!

  • @Maccelerate
    @Maccelerate Před 6 lety +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  Před 6 lety +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 Před 4 lety

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

    • @foxjonesofficial
      @foxjonesofficial Před 3 lety

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

  • @teosurch
    @teosurch Před 2 lety

    Thanks!

  • @kayax01
    @kayax01 Před 3 lety

    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  Před 3 lety

      It indicates folder names as opposed to file names.

    • @kayax01
      @kayax01 Před 3 lety +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  Před 3 lety

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

    • @kayax01
      @kayax01 Před 3 lety +1

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

  • @masha6467
    @masha6467 Před rokem

    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.

  • @abenixz
    @abenixz Před rokem

    professor steve what a voice

  • @zohaibmuhammad1993
    @zohaibmuhammad1993 Před rokem

    thanks bro

  • @sairaj6875
    @sairaj6875 Před rokem

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

  • @abiodun6897
    @abiodun6897 Před 2 lety

    haha your voice is godly 😆👍

  • @jellymath
    @jellymath Před 2 lety

    Would it prevent git from uploading the files to GitHub?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  Před 2 lety

      If they have not been added and uploaded previously yes

    • @jellymath
      @jellymath Před 2 lety

      @@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  Před 2 lety

      @@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 Před 2 lety +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 Před 2 lety

      @@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 Před 4 měsíci

    500th like

  • @foxjonesofficial
    @foxjonesofficial Před 3 lety +2

    Three coms including me! Wut