git ignore .env files not working

Use git rm: If you have already added the files to be tracked, you need to remove them from tracking: git rm env.local –cached git rm env.staging –cached git commit -m “Stopped tracking env.local, and env.staging” Now you should be able to clone your branch without those files being tracked. Note: Keep in mind that … Read more

error: RPC failed; curl transfer closed with outstanding read data remaining

It happens more often than not, I am on a slow internet connection and I have to clone a decently huge git repository. The most common issue is that the connection closes and the whole clone is cancelled. Cloning into ‘large-repository’… remote: Counting objects: 20248, done. remote: Compressing objects: 100% (10204/10204), done. error: RPC failed; … Read more