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...
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
I'm sure my students would tell you that some times I do talk about the most random stuff. 😀
Very easy to understand and follow! Thanks
Easy and clear! Thank you
Steve, are you in the future going to do any Javascript Framework tutorials, such as Angular or React, etc?
Chris Kavanagh I did a handful of Angular ones a couple years ago. I will be doing some React ones later this summer
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!
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?
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.
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.
professor steve what a voice
Thank you for this video. On a side note, you sound like James Spader. :)
I have a windows pc and don't know how to change gitignore to .gitignore via the cmd line. Any tips?
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.
Just create this file through your editor.
Or use the Git Command: touch .gitignore
Just say j.gitignore
And then edit the name and replace it with nothin
Thanks!
Hi, which role plays the "/" in .ignore then? It seems to me as not being useful but often you can see it in .gitignore...
It indicates folder names as opposed to file names.
@@SteveGriffith-Prof3ssorSt3v3 Thanks for the answer! I rather meant "/name". What you mean is probably "name/"? At least this is what I've seen...
@@kayax01 yes. It starts at the root level so the starting slash is optional
@@SteveGriffith-Prof3ssorSt3v3 Ah, OK! That's it! Thanks Steve
thanks bro
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.
No. Gitignore files are just for listing files and folders that you don't want transferred
Ok, we aren't able deleting the merge conflicts by using gitignore files.
@@masha6467 no
Thanks sir
haha your voice is godly 😆👍
Would it prevent git from uploading the files to GitHub?
If they have not been added and uploaded previously yes
@@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?
@@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.
@@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!
@@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.
500th like
Three coms including me! Wut
Comments
i take that as a good sign that my explanation was clear. :)