GithubHelp home page GithubHelp logo

Comments (6)

 avatar commented on June 15, 2024 1

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.

 avatar commented on June 15, 2024 1

Hey jkarlosb,
I'm sorry for the delay. Your fix worked as advertised. Thanks!

from git-server-docker.

jkarlosb avatar jkarlosb commented on June 15, 2024

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.

jkarlosb avatar jkarlosb commented on June 15, 2024

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.

jkarlosb avatar jkarlosb commented on June 15, 2024

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.

 avatar commented on June 15, 2024

Thank you so much. This will be very helpful!

from git-server-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.