Answers for "gitignore"

2

reinit gitignore

# rm all files
git rm -r --cached .
# add all files as per new .gitignore
git add .
# now, commit for new .gitignore to apply
git commit -m ".gitignore is now working"
Posted by: Guest on July-30-2020
11

create gitignore

# creates gitignore file
$ touch .gitignore
Posted by: Guest on July-11-2020
3

gitignroe remove folder

git rm -r --cached some-directory
git commit -m 'Remove the now ignored directory "some-directory"'
git push origin master
Posted by: Guest on August-05-2020
9

git add gitignore

$ touch .gitignore
Posted by: Guest on June-09-2020
20

how to use gitignore to ignore a folder

You can ignore entire directories, just by including their paths and putting a / on the end:

1
2
node_modules/
logs/
Posted by: Guest on May-13-2020
1

gitignore

Use the service www.gitignore.io to create your personalized .gitignore
Posted by: Guest on March-12-2021

Browse Popular Code Answers by Language