Skip to content

Instantly share code, notes, and snippets.

View BowTiedSwan's full-sized avatar

BowTiedSwan BowTiedSwan

View GitHub Profile
@BowTiedSwan
BowTiedSwan / repo_to_text_local.py
Created August 28, 2024 20:51
Repo to text file for LLM consumption
import os
from tqdm import tqdm
def get_readme_content(repo_path):
"""
Retrieve the content of the README file.
"""
readme_path = os.path.join(repo_path, "README.md")
try:
with open(readme_path, 'r', encoding='utf-8') as file:
@BowTiedSwan
BowTiedSwan / git-pushing-multiple.rst
Created March 1, 2022 20:50 — forked from rvl/git-pushing-multiple.rst
How to push to multiple git remotes at once. Useful if you keep mirrors of your repo.

Pushing to Multiple Git Repos

If a project has to have multiple git repos (e.g. Bitbucket and Github) then it's better that they remain in sync.

Usually this would involve pushing each branch to each repo in turn, but actually Git allows pushing to multiple repos in one go.

If in doubt about what git is doing when you run these commands, just