Skip to content

Instantly share code, notes, and snippets.

View koraycalisir's full-sized avatar

Koray koraycalisir

View GitHub Profile
@avullo
avullo / push_file_to_github_repo_branch.py
Created November 13, 2017 20:18
Push file update to GitHub repository using GitHub API in Python
import requests
import base64
import json
import datetime
def push_to_repo_branch(gitHubFileName, fileName, repo_slug, branch, user, token):
'''
Push file update to GitHub repo