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
@fresh2182 жыл бұрын
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-Prof3ssorSt3v32 жыл бұрын
I'm sure my students would tell you that some times I do talk about the most random stuff. 😀
@danmiller77093 жыл бұрын
Easy and clear! Thank you
@Deepsim Жыл бұрын
Very easy to understand and follow! Thanks
@Colstonewall6 жыл бұрын
Steve, are you in the future going to do any Javascript Framework tutorials, such as Angular or React, etc?
@SteveGriffith-Prof3ssorSt3v36 жыл бұрын
Chris Kavanagh I did a handful of Angular ones a couple years ago. I will be doing some React ones later this summer
@Colstonewall6 жыл бұрын
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!
@teosurch2 жыл бұрын
Thanks!
@erikaperley81025 жыл бұрын
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-Prof3ssorSt3v35 жыл бұрын
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.
@erikaperley81025 жыл бұрын
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 Жыл бұрын
professor steve what a voice
@zohaibmuhammad1993 Жыл бұрын
thanks bro
@sairaj6875 Жыл бұрын
Thank you for this video. On a side note, you sound like James Spader. :)
@Maccelerate6 жыл бұрын
I have a windows pc and don't know how to change gitignore to .gitignore via the cmd line. Any tips?
@SteveGriffith-Prof3ssorSt3v36 жыл бұрын
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.
@osamagamal4954 жыл бұрын
Just create this file through your editor. Or use the Git Command: touch .gitignore
@foxjonesofficial3 жыл бұрын
Just say j.gitignore And then edit the name and replace it with nothin
@kayax013 жыл бұрын
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-Prof3ssorSt3v33 жыл бұрын
It indicates folder names as opposed to file names.
@kayax013 жыл бұрын
@@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-Prof3ssorSt3v33 жыл бұрын
@@kayax01 yes. It starts at the root level so the starting slash is optional
@kayax013 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 Ah, OK! That's it! Thanks Steve
@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.
@SteveGriffith-Prof3ssorSt3v3 Жыл бұрын
No. Gitignore files are just for listing files and folders that you don't want transferred
@masha6467 Жыл бұрын
Ok, we aren't able deleting the merge conflicts by using gitignore files.
@SteveGriffith-Prof3ssorSt3v3 Жыл бұрын
@@masha6467 no
@masha6467 Жыл бұрын
Thanks sir
@abiodun68972 жыл бұрын
haha your voice is godly 😆👍
@jellymath2 жыл бұрын
Would it prevent git from uploading the files to GitHub?
@SteveGriffith-Prof3ssorSt3v32 жыл бұрын
If they have not been added and uploaded previously yes
@jellymath2 жыл бұрын
@@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-Prof3ssorSt3v32 жыл бұрын
@@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.
@jellymath2 жыл бұрын
@@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!
@floraarc95182 жыл бұрын
@@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.
@foxjonesofficial3 жыл бұрын
Three coms including me! Wut
@foxjonesofficial3 жыл бұрын
Comments
@SteveGriffith-Prof3ssorSt3v33 жыл бұрын
i take that as a good sign that my explanation was clear. :)