[Version Control] How To Use Gitignore To Ignore A File Or Folder | Gitignore Tutorial

preview_player
Показать описание
Today, I'll give you a tutorial on the gitignore file. I'll show how to create one and explain what it's used for, Enjoy Ace :)

[ Video Outline ]

+ Creation
- Create Text Document
- Type ".gitignore." as File Name
- Add Multiple Ignore Files To Repository

+ Ignore Patterns
- Type The Full File Path
- Use "*.<File Type>" To Exclude All
- Use "*" To Match Path or File Names
- Use "#" For Comments
- Use "\" Before Special Characters To Use For Patterns
- Use "!" To Explicitly Include Files

+ Global Ignore File
- Edit The File
- Be Aware of It

[ Info ]

_ 🔴 YouTube

_ ☁️ Channel-Files

_ 🔥 Unity-Spice

🔷 My Gear 🔷 Affiliate Links ✔️
_ 📺 Monitors
◽ Acer 21.5'' LCD Monitor ✔️
◽ Samsung 27'' LED Monitor ✔️
◽ AOC Monitor ✔️

_ ⌨️ Keyboards
◽ Apple Magic Keyboard ✔️
◽ Apple Magic Keyboard Small ✔️

_ 🎤 Recording
◽ Zoom H1 Recorder ✔️
◽ Rode Smartlav+ Lavalier Microphone ✔️
◽ Elgato Game Capture HD60 ✔️

_ 💽 Hard Drives
◽ Seagate 2TB External HD ✔️
◽ Samsung 250GB SSD ✔️

_ 💻 Computers
◽ Microsoft Surface Pro 4 ✔️

_ 💾 Software
◽ Adobe Creative Cloud ✔️
◽ Zenmate VPN ✔️
Рекомендации по теме
Комментарии
Автор

thank you so much, brother. I had 3k pending changes and now I have 6. My stress is gone.

Keenbeaver
Автор

Thank you! Still helpful 4 years later :)

MoodyMooMoo
Автор

This entire time, I thought Ace was a program, until the very end...

Guess I'll rewatch it again, it was a very informative video regardless.

hyphend
Автор

Morning,
You can help me to resolved this questions?

1 - Add the .gitignore file to the Git project;

2 - Add all Java project files to the Git project;

3 - Commit the project;

4 - Push the project;


5 - For each of the classes identified in the data model elaborated in the previous module, perform the following operations;

5.1 - Create a new branch with the name of the class;
5.2 - Switch to this branch;
5.3 - Create the class in the Java project with its attributes. You should not implement class operations;
5.4 - Add the project changes to the local Git repository;
5.5 - Commit;
5.6 - Push the branch created to implement the class;
5.7 - Switch to the master branch;
5.8 - Merge the branch created to implement the class with the master branch;
5.9 - Push the project

12 - For each of the classes implemented in the previous point, perform the following operations;

12.A - Implement getters and setters;
12.B - Commit and push the project;

philipe
Автор

what I should do, if files, that should be ignored, already exist in my repo, but they should be not updated with further commits?

Dan-rddr
Автор

Great tutorial I needed this and Source Tree looks great i'm gonna try that.

gameongamingadmin
Автор

sometimes people mispronounce my name as "ace", i was so freaked out when they said ace over and i thought it was a bot that call every watchers' name :D

ecesrkn
Автор

the video was fast but its help full
thank you

muhammedbilal
Автор

perfect tutorial and Thanks for sharing :)

md.yeasinsheikh
Автор

how about ignoring a folder in an child directory from the gitingore?

bubblesgrappling
Автор

Hey there, I have had so much trouble trying to get the txt file to auto change to a .gitignore file but no matter what I look up, or attempt to do I cant get my pc to recognize it. Ie: it will change the name and stay as a .txt file ".gitignore..txt" or it will lose a name completely and just have ".txt" with no name

it's driving me up the wall because all I wanted to do was quickly set up a project that I made on one pc and take it to another, though everything was messed up when I copied the files directly so I researched a solution and vcs seem to be the way to go if I want a pipeline of working from my laptop and my workspace. If you have any suggestions it would mean the world because everything in the tutorial has been really easy to follow, except for this very specific thing. Sorry for any inconvenience and any info would be greatly appreciated!

Fakman
Автор

Awesome. Thanks for the great video.
Im sorry that Im lazy and Im gonna ask this question, but Ill still ask. Since Im using node modules for unit testing in JavaScript how can I exclude every folder in the folder structure of the repo with the name "node modules"? After some testing with the help of your video I should be able to figure it out, but Im kinda pressured on time right now.

SkyLordPanglot
Автор

my file is not in the type of "GITIGNORE file" as seen, i can't create file into .gitignore so what i did is inside the gitbash i use "touch .gitignore" and still the file is in the type of "Text Document" perhaps that is why my .git can't ignore the files. what should i do? hoping for your response thanks

av
Автор

Thank you! Damn your voice sounds good lol

randerins
Автор

You might want to zoom you screen man..

farsikogama
Автор

Amazing, thanks, you saved me, like and subscribed :D

AquiEnAguas