Photo by Pankaj Patel on Unsplash

1. Git status

git config --global alias.st 'status -sb'

2. Git commit

git config --global alias.cm 'commit -m'

3. Git push

git config --global alias.p 'push'

4. Git pull

git config --global alias.pp 'pull'

5. Git remote

git config --global alias.rv 'remote -v'

6. Git log oneline

git config --global alias.ll 'log --oneline'

7. Git config list

git config --global alias.gl 'config --global -l'

8. Git commit search

git config --global alias.se '!git rev-list --all | xargs git grep -F'

--

--

version: '3.9'
services:
db:
image: postgres:latest
container_name: postgre1
restart: always
environment:
— POSTGRES_USER=postgres
— POSTGRES_PASSWORD=postgres
ports:
— '5432:5432'
volumes:
— db:/var/lib/postgresql/data
volumes:
db:
driver: local

--

--

version: '3.9'services:
mongodb:
image: mongo:5.0
container_name: mongodb1
ports:
— 27017:27017
volumes:
— ~/apps/mongo:/data/db
environment:
— MONGO_INITDB_ROOT_USERNAME=admin
— MONGO_INITDB_ROOT_PASSWORD=admin

--

--

UPDATE household_quotations
SET encoder = (
select t1.lvl3
from household_outlets t1
inner join household_quotations t2 on t2.oid = t1.id
where t2.encoder = 1
)
WHERE id in (
select t2.id
from household_outlets t1
inner join household_quotations t2 on t2.oid = t1.id
where t2.encoder = 1
)

--

--