<commit_before>################################
# set git config
################################


# params
Param(
    [string]$UserName = "lnh",
    [string]$UserEmail = '<EMAIL>'
)

# global config : alias
function Git-Set-Global-Config-Alias () {
    
    # checkout
    git config --global alias.co checkout
    
    # commit
    git config --global alias.ci commit
    git config --global alias.alc 'commit --amend --no-edit'
    
    # status
    git config --global alias.st status

    # branch
    git config --global alias.br branch

    # pull
    git config --global alias.pr 'pull --rebase'

    # pull
    git config --global alias.mnf 'merge --no-ff'

    # diff
    git config --global alias.d diff
    git config --global alias.dt difftool
    
    # cherry-pick
    git config --global alias.cp cherry-pick

    # log
    git config --global alias.last 'log -1'
    git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
    
}

# global config
function Git-Set-Global-Config () {
    # gui
    git config --global gui.encoding 'utf-8'

    # user
    git config --global user.name $UserName
    git config --global user.email $UserEmail
    
    # set alias
    Git-Set-Global-Config-Alias

    # show global config
    git config --global --list
}

Git-Set-Global-Config<commit_msg>rename powershell function name to 'Verb-Noun' spec.<commit_after>################################
# set git config
################################


# params
Param(
    [string]$UserName = "lnh",
    [string]$UserEmail = '<EMAIL>'
)

# global config : alias
function Set-GitGlobalAlias () {
    
    # checkout
    git config --global alias.co checkout
    
    # commit
    git config --global alias.ci commit
    git config --global alias.alc 'commit --amend --no-edit'
    
    # status
    git config --global alias.st status

    # branch
    git config --global alias.br branch

    # pull
    git config --global alias.pr 'pull --rebase'

    # pull
    git config --global alias.mnf 'merge --no-ff'

    # diff
    git config --global alias.d diff
    git config --global alias.dt difftool
    
    # cherry-pick
    git config --global alias.cp cherry-pick

    # log
    git config --global alias.last 'log -1'
    git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
    
}

# global config
function Set-GitGlobalConfig () {
    # gui
    git config --global gui.encoding 'utf-8'

    # user
    git config --global user.name $UserName
    git config --global user.email $UserEmail
    
    # show global config
    git config --global --list
}

Set-GitGlobalAlias

Set-GitGlobalConfig
{'fraction_non_alphanumeric': 0.16424263923377083, 'fraction_numerical': 0.001418942887548776, 'mean_word_length': 2.4558823529411766, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6242300', 'n_tokens_mistral': 895, 'n_tokens_neox': 857, 'n_words': 263}