Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
2 votes
1 answer
71 views

Python SQLAlchemy database model for Version Control system

This is my first time creating a non-trivial database and I was wondering what I could do better. As the title says this will be used a in toy version control system. Most of my choices feel "...
Doruk's user avatar
  • 433
5 votes
2 answers
2k views

How to reduce the build time of Docker image layer in GitHub Actions?

I have a Dockerfile with ubuntu:22.04 as a base image and a manual Python installation(specific version i.e., 3.11.1) layer which takes a long time. Approach 1: ...
shaik moeed's user avatar
6 votes
1 answer
60 views

TestAssignment class that checks for certain Git repository conditions

TestAssignment is a Python class designed to check certain conditions in a Git repository. It has several methods that check for the existence of required files, ...
Beki's user avatar
  • 61
0 votes
1 answer
114 views

Best practices python repository. Import it as pip install [closed]

I have this public repository. Since it's the first repository I have created, I'm looking for tips on what should I improve (mainly in the GH project structure), although tips in the code would be ...
Javi Torre's user avatar
9 votes
1 answer
719 views

git-user - Working on a shared local repository with multiple users made easier

I have recently been in a situation where multiple developers worked on a shared local git repository under the same Linux user¹. As one can imagine, it can easily become a bit annoying not to commit ...
AlexV's user avatar
  • 7,353
3 votes
1 answer
92 views

Tracking 1400+ client codes, multi-threading nightmare

I am looking for a bit of help. I am having to cycle through 1400 clients code on my server, I have to check what Version of the software they are on and check for customization's to the code so when ...
Computer guy next door's user avatar
5 votes
2 answers
124 views

Pushing local repository to remote repository using python Github

The code should do the following in order: It should download/clone the public Github repository locally. It should remove all the git history (and branches) Use the Github API to create a new Github ...
Krishna's user avatar
  • 51
3 votes
1 answer
80 views

How to manipulate directories using Python

I'm using the following lump of code to manage a 9.4gb dataset. I had to divide the dataset into multiple github repositories to be able to do this. I've explained what each block of code does. <...
Levent Ozbek's user avatar
2 votes
0 answers
367 views

application to get git commit and write data into csv file

I am writing a small application to get commits between two tags from different env (apple, banana) and write the result into a csv file. For security, I have to replace some sensitive information ...
jacobcan118's user avatar
8 votes
1 answer
910 views

A Python script that generates git commits for the last year

I implemented a Python script that generates git commits for the last year making one's Contribution Graph look full of changes. It was my first Python program (I work mostly with Java). Although the ...
Sasha Shpota's user avatar
4 votes
2 answers
1k views

automating to push changes to github for multiple repos using python

This Python script does following activities: clone repo, as provided from the list creating a new branch "jenkinsMigrate" rename Jenkinsfile to Jenkinsfile.migrate push code to GitHub in a new ...
Here_2_learn's user avatar
4 votes
2 answers
349 views

GitHub repo tree generator

I have built a generator that, using the GitHub API, creates a dictionary containing a tree of all the resources in any GitHub repo. It uses the function git_tree, ...
moltarze's user avatar
  • 445
10 votes
1 answer
113 views

Measure size of repository as a function of time

In order to avoid having to make any real progress (at least for a short time), I wrote a script that measures how much progress I have made so far, instead. Specifically, this script sums up the file ...
Graipher's user avatar
  • 41.6k
4 votes
1 answer
99 views

Daily Add/Del Git Log Analysis

I just finished writing this Python script to calculate daily additions and subtractions from my git log to use in making pretty graphs. This is a rewrite of something I wrote previously in Perl. I ...
HSchmale's user avatar
  • 915
5 votes
1 answer
784 views

Python script to synchronise your locally cloned fork to its parent github repository

I recently wrote a python script that syncs your locally clone repository to its parent repository, so I would like you to review it and help me in improving it. ...
RatanShreshtha's user avatar

15 30 50 per page