Posts

Showing posts with the label GitHub

Push to GitHub with the Terminal

Push to GitHub with the Terminal GitHub is an online version control repository for code. It facilitates sharing and improvement of code. GitHub uses the Git platform to update code from a terminal. However, setting up a server to push changes to GitHub can be quite a pain. Below is a guide on one way to set up such a server. 1. Generate a deploy key Deploy keys allow a server to push changes to a GitHub repository. Open a terminal window and type the following command. $ ssh-keygen -t rsa -C "deploy key for repo" You will be given a prompt to change the file name. Change it to reflect the name of your repository. For this example, the name will be "repo". Generating public/private rsa key pair. Enter file in which to save the key (/home/usr/.ssh/id_rsa): /home/usr/.ssh/repo_rsa # change the file name to match your repo Enter passphrase (empty for no passphrase): # hit enter for no passphrase Enter same passphrase again: # hit enter for no pa...