Site icon SEREK DEV

Dev notes

A collection of common commands usefull from developer perspective.

Bash

Fixing encoding to unix format on all files e.g. “*.sh”

Bash
find . -type f -name "*.sh" -exec dos2unix {} +
Bash

PHP Storm

Mysql Dump

In order to use MySql dump – add path in your DB configuration:

Bash
\\wsl.localhost\Ubuntu\usr\bin\mysqldump
Bash

Git

Modify last commit date

In order to modify last commit date we can use ammend with date function:

Bash
git commit --amend --date="$(date -d 'yesterday 23:00' -R)" --no-edit
Bash
Exit mobile version