Template request | Bug report | Generate Data Product
Tags: #github #productivity #code #operations #snippet
Author: Jeremy Ravenel
Description: This notebook provides instructions on how to use GitHub to perform basic tasks.
from git_lib import Git
- username : Git username
- password : Git password
- github_url : Git url to clone
- branch : Branch name on which perform action
- target_folder : Folder name of which clone,commit,push,pull,checkout has to be performed
- action : Action you wish to perform (clone,commit,push,pull,checkout)
- commit_message : Any message you wish to pass while commit
config = {
"username": "< Your github username >",
"password": "< Your github password >",
"github_url": "< Github url >",
"branch": "< Github branch name >",
"target_folder": "< Folder name >",
"action": "< Github action >",
"commit_message": "< Your message for commit >",
}
git_instance = Git(config)