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...