Questions tagged [git]
For code which accesses or manipulates a Git repository
129 questions
2
votes
2
answers
114
views
Using git autobackup with shell script
I have php website for prevent hacker modify any file and inject backdoor.
I want to use git as a file tracking solution. This is my shell script:
...
2
votes
1
answer
81
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 "...
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:
...
6
votes
1
answer
63
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, ...
12
votes
4
answers
2k
views
Git Push Bash script
I created this bash script to make it easy to publish your files to a GitHub repository.
...
2
votes
1
answer
173
views
std::unique_ptr adapter class template for libgit2 objects
I'm working on a personal project to build an open-source gui for git. I'm hoping to learn a lot from the project, and maybe produce something useful for folks as I do.
I'm making use of libgit2 to ...
-2
votes
1
answer
149
views
Write portable Git aliases
The following aliases return all the same number of results, on my Cygwin (on Windows):
...
0
votes
1
answer
118
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 ...
3
votes
1
answer
86
views
Fast git change sets with git wrapping scripts
After having a good experience with virtualenvwrapper built on top of the venv, I thought maybe it could be benefitial to have similar shortcuts for standard activities with git which could be time ...
2
votes
1
answer
67
views
Initialize a gitlab project both locally and remotely with a single command
This shell script, with only a few configurations, has the goal of initializing a project on Gitlab.com without having to go through the go through the website's ui.
This means: Let's say you just a ...
9
votes
1
answer
722
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 ...
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 ...
1
vote
1
answer
95
views
Updated bash/zsh function that cd to the root of git tree
here's the updated version of the code for being reviewed. Fixes:
"private" _cg function
functions definition as ...
4
votes
1
answer
316
views
Bash/zsh function that cd to the root of git tree
I'd like to get a review for the function that cd into the git tree root or does nothing if we are outside of the repository.
reviewed version:
...
5
votes
2
answers
129
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 ...