При помощи git api запушить файл с кодировкой CP-1251
Использую gitlab api 
Пушу файл в git хранилище используя параметры так
param = {
                "branch": branch_name,
                "commit_message": comment,
                "actions": [{
                        "action": "create",
                        "file_path": file_path,
                        "content": file_content,
                         "encoding":"text"
                }]
        }
 file_content питоновская строка бинарные данные.
Файл пушится, но создается в кодировке UTF-8, нужно в CP-1251,
кто подскажет как это сделать и возможно ли это???
Commits API | GitLab
Documentation for GitLab Community Edition, GitLab Enterprise Edition, Omnibus GitLab, and GitLab Runner.
docs.gitlab.com