# Setup version control with Git ## Initialize git repository ``` git init ``` ## Create a GitHub or GitLab repository I recommend using [GitHub](https://www.github.com) or [GitLab](https://www.gitlab.com) for version control. Once you have an account, create a repository so you can push all your code. ## Push your code to your online repository ``` git add . git commit -m "first commit" git remote add origin https://github.com/[fill-in-here].git git push -u origin master ```