Learning GitHub - .gitignore Files

  Рет қаралды 41,515

Steve Griffith - Prof3ssorSt3v3

Steve Griffith - Prof3ssorSt3v3

6 жыл бұрын

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 жыл бұрын
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 жыл бұрын
I'm sure my students would tell you that some times I do talk about the most random stuff. 😀
@danmiller7709
@danmiller7709 3 жыл бұрын
Easy and clear! Thank you
@Deepsim
@Deepsim Жыл бұрын
Very easy to understand and follow! Thanks
@Colstonewall
@Colstonewall 6 жыл бұрын
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!
@teosurch
@teosurch 2 жыл бұрын
Thanks!
@erikaperley8102
@erikaperley8102 5 жыл бұрын
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
@zohaibmuhammad1993
@zohaibmuhammad1993 Жыл бұрын
thanks bro
@sairaj6875
@sairaj6875 Жыл бұрын
Thank you for this video. On a side note, you sound like James Spader. :)
@Maccelerate
@Maccelerate 6 жыл бұрын
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 жыл бұрын
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
@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 жыл бұрын
@@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 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 Ah, OK! That's it! Thanks Steve
@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.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 Жыл бұрын
No. Gitignore files are just for listing files and folders that you don't want transferred
@masha6467
@masha6467 Жыл бұрын
Ok, we aren't able deleting the merge conflicts by using gitignore files.
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 Жыл бұрын
@@masha6467 no
@masha6467
@masha6467 Жыл бұрын
Thanks sir
@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 жыл бұрын
@@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.
@foxjonesofficial
@foxjonesofficial 3 жыл бұрын
Three coms including me! Wut
@foxjonesofficial
@foxjonesofficial 3 жыл бұрын
Comments
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
i take that as a good sign that my explanation was clear. :)
@pablocastro7952
@pablocastro7952 3 ай бұрын
500th like
Learning Git - How to use the gitignore file
7:14
DevOps Journey
Рет қаралды 21 М.
Beginner Git and GitHub #9 - .gitignore files
7:34
Becoming a Data Scientist
Рет қаралды 10 М.
I CAN’T BELIEVE I LOST 😱
00:46
Topper Guild
Рет қаралды 64 МЛН
The child was abused by the clown#Short #Officer Rabbit #angel
00:55
兔子警官
Рет қаралды 17 МЛН
ROCK PAPER SCISSOR! (55 MLN SUBS!) feat @PANDAGIRLOFFICIAL #shorts
00:31
.gitignore: Ignoring Files in Git | Git Tutorials #7
12:33
CodeWithHarry
Рет қаралды 155 М.
Part 4 - How to use .gitignore [Git-ing Started with Git Series]
11:13
Node JS in Hindi #8 All About Package.json file
13:56
Code Step By Step
Рет қаралды 99 М.
Using Git with Terminal Pt 2 Add  gitignore
2:48
Charlie
Рет қаралды 12 М.
Multiple Github Accounts on One Computer with SSH
17:42
Seeker Labs
Рет қаралды 30 М.
How Git Works: Explained in 4 Minutes
4:18
ByteByteGo
Рет қаралды 147 М.
Git Tutorial - 19 - gitignore and GitHub Desktop
8:20
thenewboston
Рет қаралды 78 М.
How to Ignore Git Folders and Directories .gitignore
4:41
Cameron McKenzie
Рет қаралды 57 М.