Guance Learn

Observability questions

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

Illustration of Git branches and version history
Technical guide

Fix Git refusing to merge unrelated histories

Join deliberately separate Git histories with an explicit merge, check remote configuration, and avoid an invalid rebase option.

Illustration of Git branches and version history
Technical guide

Remove a directory from Git or stop tracking it

Delete a tracked directory, retain local files with git rm --cached, restore staged deletions, or plan a separate history cleanup.

Illustration of Git branches and version history
Technical guide

Understand and fix Git LF-to-CRLF warnings

Set repository line-ending rules with .gitattributes, normalize tracked text, and distinguish stored content from working-tree line endings.

Illustration of Git branches and version history
Technical guide

Return to an earlier Git commit

Choose reset, revert, or a detached checkout based on whether you want to rewrite a local branch, undo published work, or inspect an old version.

Illustration of Git branches and version history
Technical guide

Configure HTTPS certificate verification for one Git repository

Fix a repository-specific Git certificate error with a trusted CA and understand the limits of temporarily disabling HTTPS verification.

Illustration of Git branches and version history
Technical guide

Discard Git working-tree changes, including new files

Reset tracked files and the index to HEAD, preview untracked-file cleanup, and understand ignored-file, submodule, and recovery limits.

Illustration of Git branches and version history
Technical guide

The difference between .gitignore and .gitkeep

Use .gitignore to exclude untracked paths and a placeholder such as .gitkeep to preserve an otherwise empty directory in a Git checkout.

Illustration of Git branches and version history
Technical guide

Ignore everything except selected files in Git

Build a .gitignore allowlist with negated patterns, re-include parent directories, and check which rule controls a path.

Illustration of Git branches and version history
Technical guide

Why .gitignore is not ignoring a file

Check whether a file is already tracked, diagnose ignore-pattern precedence, and stop tracking generated files without deleting local copies.

Illustration of Git branches and version history
Technical guide

Write a .gitignore for an Android Studio project

Exclude Android build output, machine-specific settings, and signing secrets while preserving shared project files and Gradle wrapper inputs.

Illustration of Git branches and version history
Technical guide

Write a .gitignore for a Visual Studio project

Ignore Visual Studio build output and user state while keeping solution files, project definitions, and intentional shared editor configuration.

Illustration of server operations and request logs
Explainer

Send Nginx access and error logs to stdout and stderr

Configure Nginx standard-stream logging for containers, preserve startup errors, and let the runtime manage log retention.