Beginner Git and GitHub #9 - .gitignore files

preview_player
Показать описание
Step-by-step teaches you how to create a .gitignore file to block certain files from being push to GitHub!

git Wildcard info:
- # - marks line as a comment
- * - matches 0 or more characters
- ? - matches 1 character
- [abc] - matches a, b, _or_ c
- ** - matches nested directories - a/**/z matches
--- a/z
--- a/b/z
--- a/b/c/z

git command used in this video:
- git add .
- git commit -m "Commit Description"
- git push origin [Name of Branch]
- git rm -rf --cached .

Support the Channel:
Рекомендации по теме
Комментарии
Автор

Loving this series so far! It's bee really helpful in learning git and version control for the first time. One thing you skipped, which I struggled with was tokens and setting up permissions for tokens when connecting to a remote repo. Obviously you don't want to share your real tokens, but a walkthrough on how to properly set one up would be really helpful. Anyways, love these videos so far!

soulstenance
Автор

thank you! you helped me fix the one problem I couldn't figure out by following your steps with clearing the cache.

TheCoachis_BA
Автор

Ahhh That's What i neeeded
AWESOME
<.3

bldabirum
Автор

Thanks for the video. It is very informative. What's the deal with the cache. What is it? It the .gitignore file cached? Does .gitignore need to be "activated" to have an effect?

cristianriccio
Автор

Thanks, bro. That is exactly what I am looking for

ufuk
Автор

What is the .gitignore rule to never push ~ files (generated by Emacs) ???

proggenius
Автор

the only question I have is: at 5:45, the git console says: rm 'java.js' and other files, but after de add ., commit and push, it's still in the repo, so why does it says it will be removed ? (on git status, it says deleted on the file.

jacobD
Автор

1 minute in and already lost cause he didn't say what he was making his .gitignore file in.

treegang