This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
import json | |
import argparse | |
import logging | |
github_api_url = "https://<github URL>/api/v3" | |
ghe_access_token = 'your github personal access token' | |
#logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO, filename='ghe_org_repo_list.log') | |
logging.basicConfig(format='%(asctime)s : %(levelname)s : %(message)s', level=logging.INFO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1- Install mercurial | |
- apt-get install mercurial | |
2- Checkout bitbucket repo | |
- hg clone <repo url> -r <branch> | |
- EX - hg clone https://bitbucket.org/rptlab/reportlab -r default | |
3 - Create a git repo: | |
- cd reportlab | |
- git init | |
- git checkout -b master |
NewerOlder