I want to add chromedriver file in my repo using git LFS. The steps I followed are:
Install git LFS using this command:
sudo apt get install git-lfs
Initialize our repository with git-lfs using following command:
git lfs install
Track the files we want to add using this command:
git lfs track chromedriver
git add chromedriver
It is giving this error: The following paths are ignored by one of your .gitignore files: savedrivers hint: Use -f if you really want to add them. hint: Turn this message off by running hint: "git config advice.addIgnoredFile false" How to fix it?
Secondly, what is the purpose of command git add .gitattributes
?
Other questions:
- After the file is pushed in our repo, in which folder can we see the file and how can we access it inside our code?
- Will the size of our repo be affected after adding file with GitLFS? As the purpose of Git LFS is to store file in our repo without affecting its size.
- When the branch containing git lfs code gets merged to master branch, does everyone have to pull it locally?
- In Github LFS, instead of pushing the files in our repository, we push them in a different server, and then can only reference from inside the repository. How can we access it in our code?