# Functions

AppendToFile appends content to a file.
ChangeFileOwnership changes the ownership of a file.
CreateDirAndChown creates a directory and changes its ownership.
FileExists checks if a file exists or not.
GetRepoNameFromConfig reads the .git/config file and extracts the repository name.
IsScriptPresent checks if a script is already present in a file.
SetupFS initialize the file system instance.
WriteFileAndChown writes content to a file and changes its ownership.

# Variables

Fs is the global file system instance, can be backed by real FS or MemMapFs for testing.