UAlbertaFSAE / f1tenth

MIT License
0 stars 0 forks source link

Git push/pull broken in container #81

Closed Jquinny closed 1 day ago

Jquinny commented 1 month ago

Describe the bug A clear and concise description of what the bug is.

can't push or pull changes when inside the devcontainer anymore. Not sure what happened but it broke on at least two members computers, so I imagine it is a general issue.

To Reproduce Steps to reproduce the behavior:

clone repo, open up devcontainer in vscode, try to do a git pull or push when inside the devcontainer terminal.

Expected behavior A clear and concise description of what you expected to happen.

expect to be able to pull and push git stuff to github from inside devcontainer

Screenshots If applicable, add screenshots to help explain your problem.

Operating System

Additional context Add any other context about the problem here.

fsoehn commented 2 weeks ago

Fixed it on my machine (Mac M1) by running: ssh-add $HOME/.ssh/id_rsa on my home terminal to add my SSH key to the SSH Agent dev containers use.

https://code.visualstudio.com/remote/advancedcontainers/sharing-git-credentials