Wednesday, April 20, 2016

Monday, April 18, 2016

Setup SSH key pair for Git

1. After installing Git, open your terminal and type the following command to create SSH key pair:
ssh-keygen -t rsa -C "youremail@something.com"
2. then press enter
3. then press enter again
4. then put your password
5. then put your password again
And your key has been generated.

Now go to where is your id_rsa.pub is created and open it in word pad or text pad and copy all.

Then go to bitbucket -> settings -> SSH keys
Then type a level and paste your key and press add.
You are done.

Tuesday, March 29, 2016

Git fork sync

Git command to fork sync:

1. git fetch upstream
2. git merge upstream / branch_name
3. git push origin branch_name [optional, if you want to update your account remote]

Note : if you did not add upstream as remote then add by below command:
git remote add upstream(remote_name remote_url

Basic :  if you don't know, which one is origin and which one is upstream then read below:

After forking repo, that repo will come to your account and that is ORIGIN and UPSTREAM is which you have forked from. Like:

Another account / repo (upstream) => forked => your account / forked repo (origin)

Switch PHP version in Ubuntu OS or Zorin OS

First check where is installed your PHP by the below command: $ which php See PHP version by below command: $ php -v As I've installed P...