How To Install Git on Ubuntu 18.04


Step 1 — Update Default Packages Logged into your Ubuntu 18.04 server as a sudo non-root user, first update your default packages. sudo apt update Step 2 — Install Git sudo apt install git Step 3 — Confirm Successful Installation You can confirm that you have installed Git correctly by running this command and receivingContinue reading “How To Install Git on Ubuntu 18.04”

Generating a new SSH key


Generating a new SSH key Open Terminal. Paste the text below, substituting in your GitHub email address. $ ssh-keygen -t rsa -b 4096 -C “your_email@example.com” This creates a new ssh key, using the provided email as a label. > Generating public/private rsa key pair. When you’re prompted to “Enter a file in which to save theContinue reading “Generating a new SSH key”

Git Status, Git Commit, Git Add


To Edit File in Git cd to directory: vi views/index.jade (File Name) Edit the file in VI Editor and save :qw! To see Status: git status # On branch master # Changes to be committed: # (use “git reset HEAD <file>…” to unstage) # # modified: views/index.jade # To Commit git commit -m “change header text”Continue reading “Git Status, Git Commit, Git Add”

Setting up Priate Key Access


Setting up Priate Key Access\ An easy way to authenticate with remote git server like GitHub is to use an ssh key pair. On a CentOs environment, you can generate an ssh key pair like this ssh-keygen -t rsa -b 4096 After generating the key pair, copy the contents of ~/.ssh/id_rsa.pub. [root@aryan-34252e5f2 ~]# ssh-keygen -tContinue reading “Setting up Priate Key Access”