commit 844c42d2e827ecf7eb99199593dfc408c4999785 parent 073e82007c335863ae514ba4d33da955012bb9e9 Author: ling0x <ling0x@users.noreply.github.com> Date: Wed, 30 Sep 2026 00:07:16 +0100 commands Diffstat:
| M | commands/git.txt | | | 9 | +++++++++ |
| M | commands/psql.txt | | | 6 | ++++++ |
2 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/commands/git.txt b/commands/git.txt @@ -5,3 +5,11 @@ git log --graph --pretty=format:'%h - %10n: %s' --date=short Discard/Reset uncommited changes: git reset --hard HEAD && git status --short + +Remove gitignored cached files: +git rm -r --cached . + +and then: +git add . + +That clears the whole index and re-adds everything, so ignored paths stay untracked. +\ No newline at end of file diff --git a/commands/psql.txt b/commands/psql.txt @@ -2,6 +2,12 @@ PSQL ========================================================================== +Enter interactive shell of a dockerized container: + +docker exec -it <container-name> psql -U username -d main_db + +========================================================================== + Connect to remote database: psql "postgresql://doadmin:PASSWORD@db-postgresql-lon1-12345-do-user-1234567-0.b.db.ondigitalocean.com:25060/defaultdb?sslmode=require"