Hızlı yanıt: kod örneği
So based on what you said, these files are libraries/documentation you don't want to delete but also don't want to push to . Let say you have your project in folder and a doc directory: .
github
your_project
your_project/doc
- Remove it from the project directory (without actually deleting it):
git rm --cached doc/*
- If you don't already have a , you can make one right inside of your project folder:
.gitignore
.project/.gitignore
- Put in the .gitignore
doc/*
- Stage the file to commit:
git add project/.gitignore
- Commit: .
git commit -m "message"
- Push your change to .
github