It will ask you to provide the location for storing the key, just hit Enter to use the default location. First create ssh keys on your local machine: ssh-keygen -t rsa In order to ease access to the server let’s set-up a password-less ssh login. In this article we will use the simpler method: sudo apt-get install git-core You can install Git from the packages already available via the repos or your distros, or you can do it manually. For the sake of simplicity we will call them remote-server and local-server.įirst, install Git on both machines. In this tutorial we are considering a use-case where we have a remote server and a local server and we will work between these machines. For this tutorial I used a fully patched Ubuntu 14.04 LTS server running on a VPS. One is running a bare, basic Git server and and the second one is via a GUI tool called GitLab. In this tutorial we are going to talk about two methods of managing your code on your own server. In most cases a majority of advanced Linux users already have their own servers and pushing Git on those servers is like ‘free as in beer’. Not only do you save costs, you also have more control over your server. In cases like these or when you want more control, the best path is to run Git on your own server. You have to pay a monthly fee of $7 to host 5 private repositories, and the expenses go up with more repos. One of the limitations of GitHub is that the free service doesn’t allow private hosting of the code. GitHub is a great service, however there are some limitations and restrictions, especially if you are an individual or a small player. Even Google, the search engine giant, is shutting it’s own Google Code and moving to GitHub. According to reports, GitHub, a code hosting site, is the world’s largest code hosting service. The company claims that there are 9.2M people collaborating right now across 21.8M repositories on GitHub. Companies like GitHub offer code hosting services based on Git. Git is a versioning system developed by Linus Torvalds, that is used by millions of users around the globe. For more great SysAdmin tips and techniques check out our free intro to Linux course. This is a classic article written by Swapnil Bhartiya from the archives.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |