Categories: GIT

Git Squash

Nov 10, 2017 1 min.

Option 1 to squash last two commits git rebase -i HEAD~2 This will open editor where you can choose which commit to keep and which to squash. Also you have option to rewrite messages. Option 2 Reset and commit again: git reset --soft HEAD~2 git commit -m "New message for the combined commit"public class Test { public static void main(String[] args) { System.out.println("hello"); } } <section id="main"> <div> <h1 id="title">{{ .

Access GIT Using SSH Key

May 12, 2016 1 min.

Create SSH Key Create a SSH (private/public) key using the following command ssh-keygen -t rsa -C "somerefname" The above command asks for phase phrase and either enter the pass phrase or press enter for no pass phrase. The above command generates following two files in your <>/.ssh directory id_rsa Login to your GIT hosting server (e.g. or and import the public key into your profile.