Comments (6)
Hey jkarlosb,
Thank you so much for this solution. I will test it today after work. (+8h)
It would be great if you could also write a little how-to on how to create a new repository.
Most solutions require the repository to be created in the GUI side (github, gitlab, ...).
Thank you very much
from git-server-docker.
Hey jkarlosb,
I'm sorry for the delay. Your fix worked as advertised. Thanks!
from git-server-docker.
Hi fraksken,
It is a permissions problem with your repo. You maybe can fix it by typing:
- docker exec -it git-server sh
- cd /git-server
- chown -R git:git repos
- chmod -R ug+rwX repos
- find repos -type d -exec chmod g+s '{}' +
I'll update the code soon for fix this problem, with SGID bit (g+s). This way when you upload a new repo, files created in the directory repos belong to the group of which the directory repos is a member, i.e. those files are members of the same group as the directory repos and not the userβs group.
Thank you very much for finding the problem.
Tell me whether you solved your problem or not. I'll try to help you if I can.
from git-server-docker.
Hi fraksken!
Sorry for the delay. I was very busy in my job this week.
I'm really glad that it worked for you. And of course! I'll write a how-to about creating new repos with git soon, needless github, gitlab, etc., great idea.
Thanks to you! Any suggestions or comments are welcome for enhanced this project.
from git-server-docker.
I updated readme.md file with a how-to about create a new Git repo from CLI, without using any GUI. It's very quick as you can check.
How to create a new repo:
- $ cd myrepo
- $ git init --shared=true
- $ git add .
- $ git commit -m "my first commit"
- $ cd ..
- $ git clone --bare myrepo myrepo.git
from git-server-docker.
Thank you so much. This will be very helpful!
from git-server-docker.
Related Issues (20)
- Closed repository
- Key in authorized_keys HOT 1
- How to access certain branch of a repo
- Every container started with this image has the same key HOT 2
- Docker build fails on ARMv7.
- Public keys must have EOF char
- Feature Request: Support for cookie-based auth
- What is the user@host? HOT 1
- Add support for git lfs (and maybe upgrade to Alpine 3.7)
- Troubleshooting help pls for "repo does not exist" HOT 1
- Add bash and curl
- Files on server?
- SCP dooesn't work
- Abandoned Project? HOT 1
- Restart of docker container needed after adding key HOT 2
- [solved] permission Error when trying to do: git push HOT 5
- sshd_config unsupported options HOT 4
- Enhance Readme HOT 1
- What type of Licence is used? HOT 1
- Problems to connect with TortoiseGit Windows HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from git-server-docker.