git fetch origin
git reset --hard origin/master
git clean -f -d
Your local branch is now an exact copy (commits and all) of the remote branch.
alias gco='git checkout' | |
alias glg='git log' | |
alias gst='git status' | |
alias gbr='git branch' | |
alias grm='git rebase master' | |
alias gcom='git checkout master' | |
alias glo="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" | |
alias dco='docker-compose' | |
alias dphp='docker-compose exec -u www-data app php' |
# rsync-homedir-excludes | |
# | |
# A list of files to exclude when backing up *nix home directories using rsync. | |
# | |
# Author: Ruben Barkow-Kuder <https://github.com/rubo77/rsync-homedir-excludes> | |
# Version: 2019-11-30 | |
# | |
# #Usage: | |
# USER=<homedir username here> | |
# rsync -aP --exclude-from=rsync-homedir-excludes.txt /home/$USER/ /media/$USER/linuxbackup/home/$USER/ |
SELECT | |
TABLE_NAME AS `Table`, | |
ROUND((DATA_LENGTH ) / 1024 / 1024) AS `Data (MB)`, | |
ROUND((INDEX_LENGTH) / 1024 / 1024) AS `Index (MB)`, | |
ROUND((DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024) AS `Total (MB)` | |
FROM | |
information_schema.TABLES | |
WHERE | |
TABLE_SCHEMA = "my_db_name" | |
ORDER BY |
stages: | |
- update-dependencies | |
- code-style | |
- build | |
- test | |
- deploy | |
composer-update: | |
stage: update-dependencies | |
only: |
Image by Randall Munroe, xkcd.com