FIND YOUR NEXT FEW LINES

Results for “configuration”

Small, practical examples. Search by task or narrow things down below.

35 snippets foundClear filters
Docker / ComposeContainer commands

Pass an environment variable

Supply configuration without changing an image.

environment✓ Tested
GitTags & repository configuration

Read an annotated tag’s message

Git: for-each-ref can inspect annotation contents without including a commit diff.

Git✓ Tested
Bash ScriptsFiles & reliability

Replace a text file with an atomic rename

Prepare new content beside the target before renaming it into place.

atomic write✓ Tested
GitTags & repository configuration

Set an author identity only for this repository

Git: Local configuration avoids changing the identity used by unrelated repositories.

Git✓ Tested
GitInspecting the working tree

List untracked files while honoring ignore rules

Git: Use others and exclude-standard together to respect repository and global ignore configuration.

Git✓ Tested
Bash ScriptsFunctions & arguments

Look up values in an associative array

Use named keys for a small in-memory configuration table.

dictionary✓ Tested
GitRemotes & additional checkouts

Rename a configured remote

Git: Renaming a remote updates its associated configuration and remote-tracking references.

Git✓ Tested
GitRemotes & additional checkouts

Replace the URL of a configured remote

Git: set-url changes configuration without fetching or pushing any objects.

Git✓ Tested
PowerShellCommands & execution context

Restore an environment value after temporary use

PowerShell: Use finally so temporary process configuration does not leak to subsequent work; remove the entry when it was originally absent.

PowerShell✓ Tested
Docker / ComposeStorage & isolation

Set and inspect a memory limit

Apply a per-container limit when creating a container.

memory✓ Tested
Docker / ComposeCompose applications

Set service environment values

Pass configuration through the Compose environment section.

Compose✓ Tested