Last active
November 28, 2022 22:06
-
-
Save etiennecollin/f358d512656a1a829ec90263be63ba7c to your computer and use it in GitHub Desktop.
This small script will fetch and pull every repository that is cloned in the ~/github folder on my computer.
This file contains hidden or 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
# !/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# Author: Etienne Collin | |
# Date: 2022/11/25 | |
# Email: [email protected] | |
import os | |
githubFolderPath = os.path.expanduser("~/github") | |
for repoName in next(os.walk(githubFolderPath))[1]: | |
print("\nUpdating: " + repoName) | |
os.system("cd " + githubFolderPath + "/" + repoName + " && git fetch && git pull") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment