#Git Version Control's .gitignore

11 messages · Page 1 of 1 (latest)

woven oyster
#

I normally just use this

#

Nah I don't think so

woven oyster
#

Switch to neovim lol

plucky sage
#

you need to git add xD
after adding a .gitignore file

#

so basically:
you create a .gitignore in your root folder
add stuff into it which you want to ignore
like this is also possible:

.venv*
.idea*
*.log

* = placeholder for anything
. part of the name like .log includes all type log files

if you want to add a folder to ignore it looks like this: myfolder/
this ignores root/myfolder

#

then you just add what you want to ignore.
one per line

#

have you tryed checking into the .gitignore file from your explorer with simpel text editpor? is it all in?
have you added it?
have you comitted it after?
Have you deleted before commit on your github or whererever you saved the stuff accidently the wrong files?

#

if "the files/folders you want to ignore" are allready up, it needs to be deleted.
If you struggle( as beginner), best create a new git with the gitignore set up before first add/commit

#

thats why you cant change it back 😄

#

there is a complex way to do that.
But as said, easyest wehn you are ot used to git is delete teh repo, create a new repo and add your stuff there.

if you set up the gitignore properly, the fiels should not be uploaded.