Git Episodes

Categories
Kode47

Create a Remote Repository From The Terminal

One common way of creating a remote repository is by visiting a website such as [GitHub](https://github.com), [GitLab](https://gitlab.com), [Bitbucket](https://bitbucket.org) etc., and using the browser to create the remote repository. An alternative way is to use the terminal. In this tutorial, we're going to learn how to create a remote repository from the terminal using GitLab. Creating a remote repository directly from the terminal seems faster and more efficient in my opinion. If you would like to follow along, you will need a git installed on your machine, [GitLab](https://gitlab.com) account and some familiarity with using the [Git](https://git-scm.com/), free open source, version control system. To get started visit https://gitlab.com and click on register. You can also check Episodes [8](https://bit.ly/2BcAAbN) and [9](https://bit.ly/2S2GwPm) and also my blog post on [Version Control with Git](https://bit.ly/2DKmT5T). While all these focus on GitHub, the same concepts can be applied to other other software development platforms after making a few minor tweaks to the code here and there where necessary. In this tutorial, we're going to create our remote repository without having to leave the terminal.


Kode47

GitHub Remote Repository

In this episode, we're going to create our first local version control repository for our SQL projects and then connect it to a remote repository on GitHub.


Kode47

Version Control Set Up

Version control enables developers to record changes made to scripts, files, and folders while developing applications. After saving her work, the developer can then revert back to previous versions if and when the need arises. While developing applications, the developer, might have a compelling reason to revert to an older version of her code. This is where version control comes to the rescue.