-
Delete the file and all its history ( source )
git filter-branch --tree-filter "rm -f Path/to/large-file" -- --all
-
Increase the maximum file size ( source )
git config http.postBuffer 524288000
Setup ssh key pair on vscode windows: (ref)
-
Generate key pair
ssh-keygen -t rsa -b 4096 -C "YOUR_GITHUB_EMAIL_ADDRESS"
-
copy the public key to github/bitbucket
clip < ~/.ssh/id_rsa.pub
-
Add the host to known hosts (example for git)
ssh -T [email protected]
-
Actvate windows OpenSSH agent:
- Apps & features > Manage optional features > Install OpenSSH server
- Task manager > Services tab > right click > open services
- Find OpenSSH Authentication Agend > set to start automatically
-
Use OpenSSH as the default agent in git
git config --global core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe"
-
Disable authorization ineritance
- right click on private key file
- Security
- Advanced
- Disable Inheritance
- Add yourself with full permissions
-
Add the private key to the agent
ssh-add C:/Users/%USERNAME%/.ssh/PRIVATE_KEY_NAME
-
Setup git to use OpenSSH ssh
git config --global core.sshCommand "C:/Windows/System32/OpenSSH/ssh.exe"