Skip to main content

git Domain

The git domain maps domain keywords to underlying faker implementations.

Faker Documentation

Methods

git.branch

Generates a random branch name.

No parameters.

Examples:

Shows the default git.branch call.

git.branch

Returns: firewall-parse

git.commitDate

Generates a date string for a git commit using the same format as git log.

ArgTypeRequiredDescription
refDatestring|date|numbernoThe date to use as reference point for generated commit dates.

Examples:

Shows the default git.commitDate call.

git.commitDate()

Returns: Thu Jun 18 01:55:50 2026 +0600

Shows git.commitDate using a reference date.

git.commitDate(refDate="2024-01-01T00:00:00.000Z")

Returns: Sun Dec 31 10:00:30 2023 +0600

git.commitEntry

Generates a random commit entry as printed by git log.

ArgTypeRequiredDescription
mergebooleannoWhether to generate a merge commit entry.
eolLF|CRLFnoLine ending to use in the generated commit entry.
refDatestring|date|numbernoThe date to use as reference point for generated commit dates.

Examples:

Shows the default git.commitEntry call.

git.commitEntry()

Returns: commit f0632478b9f4d0e9c34bf6fdd103d29fbf6fc0af\nAuthor: Ricardo Upton <Ricardo.Upton@gmail.com>\nDate: Wed Jun 17 19:26:37 2026 +0300\n\n    parse auxiliary feed\n

Shows git.commitEntry using merge and line-ending options.

git.commitEntry(merge=true, eol="LF")

Returns: commit 9f0632478b9f4d0e9c34bf6fdd103d29fbf6fc0a\nMerge: fa6b29d 6620e45\nAuthor: Lindsey_Price41 <Lindsey_Price@hotmail.com>\nDate: Thu Jun 18 13:36:13 2026 -0800\n\n    calculate redundant feed\n

Shows git.commitEntry using a reference date.

git.commitEntry(refDate="2024-01-01T00:00:00.000Z")

Returns: commit f0632478b9f4d0e9c34bf6fdd103d29fbf6fc0af\nAuthor: Ricardo Upton <Ricardo.Upton@gmail.com>\nDate: Sun Dec 31 03:31:17 2023 +0300\n\n    parse auxiliary feed\n

Shows git.commitEntry forcing a merge commit entry.

git.commitEntry(merge=true)

Returns: commit 9f0632478b9f4d0e9c34bf6fdd103d29fbf6fc0a\nMerge: fa6b29d 6620e45\nAuthor: Lindsey_Price41 <Lindsey_Price@hotmail.com>\nDate: Thu Jun 18 13:36:13 2026 -0800\n\n    calculate redundant feed\n

Shows git.commitEntry using LF line endings.

git.commitEntry(eol="LF")

Returns: commit f0632478b9f4d0e9c34bf6fdd103d29fbf6fc0af\nAuthor: Ricardo Upton <Ricardo.Upton@gmail.com>\nDate: Wed Jun 17 19:26:37 2026 +0300\n\n    parse auxiliary feed\n

git.commitMessage

Generates a random commit message.

No parameters.

Examples:

Shows the default git.commitMessage call.

git.commitMessage

Returns: hack optical alarm

git.commitSha

Generates a random commit sha.

ArgTypeRequiredDescription
lengthnumbernoThe length of the generated commit SHA.

Examples:

Shows the default git.commitSha call.

git.commitSha()

Returns: 9f0632478b9f4d0e9c34bf6fdd103d29fbf6fc0a

Shows git.commitSha using a shorter SHA length.

git.commitSha(length=7)

Returns: 9f06324