r/learnpython • u/[deleted] • Jun 09 '20
Github as a beginner
As a beginner learning python, is it too early to create and start coding simple projects on Github. and how do I transfer these codes (simple calculators) to a website I build subsequently?
401
Upvotes
2
u/benabus Jun 10 '20
Git itself is a version control system and is a very valuable skill. I'd say start learning Git as soon as possible. It's extremely useful.
Github is a hosting solution for Git repositories. There are two different kinds of repositories you can put on github: Public and Private. If you don't want the world to know what your awful beginner projects look like, just put them on Private. Once you have something you're proud of, just put it on Public.
If I were you, I'd put all my code on Github for various reasons: It's basically a free code-backup system. If your computer dies, you can always just clone your code back onto your new machine because it's hosted in the cloud.
Also, it makes it super easy to deploy your code to other servers (assuming those servers also have Git installed). You would push your code from your local dev environment to Github. Then you'd go into your webserver and pull your code from Github onto the server. There might be other config things you might need to do (like moving the code to a public path or what not) but IMHO, it beats using FTP and copying things manually.