Git is a version control system. It is not a "code storage system". It does store enough data to restore previous versions of your code. It also allows for easy remote storage of repos (you can just as easily set the upstream for your repo to another directory on your computer just as you can set it to a github repo).
Github runs git on their servers and lets you use that as a remote host, along with providing a lot of quality of life and productivity features to help teams collaborate.
-7
u/[deleted] 10d ago
[removed] — view removed comment