Guance Learn

Observability questions

Focused answers for definitions, architecture choices, troubleshooting, pricing, and evaluation.

Illustration of Git branches and commit history
Technical guide

Move uncommitted changes from main to a new Git branch

Create a branch at the current commit to keep staged and unstaged work, or use a deliberate stash workflow when the destination starts elsewhere.

Illustration of Git branches and commit history
Technical guide

Get the current Git commit hash

Resolve HEAD to a full or abbreviated commit ID, handle repositories without a first commit, and label builds without confusing the ID with uncommitted changes.

Illustration of Git history and collaboration
Technical guide

Inspect the changes saved in a Git stash

Inspect tracked and untracked stash contents, compare saved snapshots, and restore changes for review without accidentally dropping the stash.

Illustration of Git history and collaboration
Technical guide

Ignore a directory except for one subdirectory in Git

Use ordered .gitignore exceptions to keep one nested directory, diagnose matching rules, and distinguish ignored files from already tracked files.

Illustration of Git history and collaboration
Technical guide

Git fetch vs. pull: inspect changes before integrating them

Understand what fetch updates, choose an explicit pull strategy, and handle divergent history or uncommitted work without assuming a universal default.

Illustration of Git history and collaboration
Technical guide

What does Git push do without a branch name?

Understand push.default, remote selection, upstream tracking, and explicit refspecs before relying on a bare git push.

Illustration of Git history and collaboration
Technical guide

Git stash pop vs. apply: restore changes and control cleanup

Choose whether a restored stash stays in the list, handle conflicts, recover staged state, and reuse saved changes across branches.

Illustration of Git history and collaboration
Technical guide

Stash changes from selected files in Git

Save changes from selected Git paths, include new files when needed, preserve other work, and choose individual hunks interactively.

Illustration of Linux system logging
Explainer

Export only the schema from PostgreSQL

Use pg_dump to export PostgreSQL definitions without table data, select tables or schemas, and restore the result into another database.

Illustration of Linux system logging
Explainer

Speed up a MySQL restore from a dump file

Reduce MySQL restore overhead with batched inserts, controlled transactions, suitable InnoDB settings, and a backup format that supports parallel loading.

Illustration of monitoring and troubleshooting application behavior
Explainer

Find and read Redis server logs

Locate the Redis server log from its active configuration, follow file or container output, and distinguish server logs from the in-memory slow log.

Illustration of organizing and querying data
Technical guide

Inspect the SQL executed by Laravel

Use Laravel query logs, QueryExecuted listeners, and query-builder inspection to debug SQL while keeping bindings and long-lived worker memory under control.