Skip to content

Git Knowledge

How do I make Git forget about a file that was tracked, but is now in .gitignore?

To stop tracking a file, remove it from the index:

git rm --cached <file>

To remove a folder and all files in the folder recursively:

git rm -r --cached <folder>

Network issue

send-pack: unexpected disconnect while reading sideband packet fatal: the remote end hung up unexpectedly

Resources: https://stackoverflow.com/questions/66366582/github-unexpected-disconnect-while-reading-sideband-packet

git config --global http.postBuffer 157286400