Posts

Showing posts from May, 2019

PHPUnit (truncated...) - SOLUTION

If you experienced the difficult task to debug the  (truncated…)  error message through PhpUnit see below global solution ! The exception caught is related to the  guzzle version A try-catch around your phpunit test would get the GuzzleException $e Example $client = new GuzzleHttp\Client([‘base_uri’ => ‘ https://foo.com/api/ ']); try { $response = $client->request('GET','/v1/testYourEndpoint'); } catch (\GuzzleHttp\Exception\ClientErrorResponseException $e) { var_dump($e->getResponse()->getBody()->getContents()); } catch (\GuzzleHttp\Exception\RequestException $e) { var_dump($e->getResponse()->getBody()->getContents()); } catch (\GuzzleHttp\Exception\ClientException $e) { var_dump($e->getResponse()->getBody()->getContents()); } try { $response = $client -> request ( 'GET' , '/v1/testYourEndpoint' ); } catch ( \GuzzleHttp\Exception\ClientErrorResponseException $e ) {

Git Delete History - Git Delete Log

Image
Git Delete Log History #1  — Terminal Git Rebase #2  — from vi/vim do the following changes — replace ‘pick’ by ‘drop’ #3 — Commit Current Change git commit — allow-empty #4 —  Continue Rebase for cofirmation of what you want to see git rebase — continue #5 —  Command line — Push to your repository git push -f #6 — Final Screen ‘bbb’ removed

GIT HELPER - DAVID RALECHE

SYNC GIT git remote update git fetch  Downloads the latest from remote without trying to merge or rebase anything. git fetch -- all Rename Git Commit git commit -amend REMOVE untracked files git clean -f -d RESET BRANCH/FILE git reset --hard origin/master  -- force discard local changes git reset --hard origin/  -- force discard local changes git checkout -f  -- force discard local changes COMMIT git commit -m ‘My commit David Raleche’ remove git add git reset HEAD -file- PUSH git push origin CONFLICTED FILES git diff --name-only --diff-filter=U  GIT ADD  git add  git commit -m “message of your commit” git push origin GIT RESET ADD git reset   git reset (VERY DANGEROUS) REMOVING LAST COMMIT (VERY DANGEROUS) git reset --soft HEAD~1 git reset --hard HEAD^ (VERY DANGEROUS) GIT CHECKOUT SOMEONE ELSE REPO git checkout --track origin/ECOM-307