Is it possible to use Request-Pull functionality that does not use hosting services such as GitHub?

Asked 2 years ago, Updated 2 years ago, 45 views

I understand that Request-Pull works by e-mailing other developers that Push has updated the bare repository when you push changes to the development clone into the bare repository.
According to information such as the Internet, you have to use GitHub, which is provided by the hosting service, to make the function work.
Is it really possible to use the Request-Pull feature without using hosting services such as GitHub?
If the Request-Pull feature is available without hosting services such as GitHub, please let me know how to do so.

Objective: Push from clone to email other developers that the bare repository has been updated and prompt Pull
Conditions:
Git (SourceTree, Git for Windows) only without GitHub Environment: Clone non-bare repository deployment PC - Windows 10 Pro
Commit/Push/Pull Software in Clone Non Bear Repository - SourceTree
Bare Repository Placement PC - Windows 10 Pro for Workstation
networks:intranet

Is it correct that the purpose cannot be achieved in the above environment?
Is it correct that only hosting services like GitHub can achieve their goals?
If possible in the above environment, please tell me the specific method.
Thank you for your cooperation.

git

2022-09-30 15:01

3 Answers

An example of the git request-pull command is 5.2Git Distributed Work - Contributions to Projects > Forked Public Projects .

In this example, the reason why hosting services are needed is because you have to publish what you've done (the repository that contains ) to a location where the maintenance staff can browse.

If you can git push into the maintenance repository, you can also use push your work directly there (like the same page small team environment).In this case, no separate hosting service is required.

When I read the comments, I wondered if the question I wanted to ask was not about post-receive instead of request-pullI thought about it.

This is a Git feature called githooks, which is not directly related to request-pull.

post-receive-email is a script that uses this hook feature to email the information once someone has git push.

Post-receive.sample and post-receive-mail.sample do not exist in the hooks directory.

You need to create this yourself and install it yourself (8.3 Git Customization - Git Hook explains how to install it and more).
…is provided as contrib/hooks and is available with a little customization.
One of them is post-receive-email.

However, they are usually based on Unix-like operating systems, and I don't think Windows is considered (so basically you'll still have to implement them yourself).
For example, post-receive-email has /usr/sbin/sendmail set up.

Why do you think post-receive.sample and post-receive-mail.sample exist?(I think that's what you think after reading some document, but what is it?)
post-receive.sample was removed around 2011 (v1.7.7), so if you are referring to any material, the description may be too old.


2022-09-30 15:01

GitHub has an account and access control, but Git alone does not have such control.Therefore, when the sender sends a Pull Request, the sender has write permission to the destination repository and can run it up to merge.

git diff/git apply is a simple way to achieve this in a completely isolated environment without access control.Git diff prints the mail draft and sends it as an email.Recipients can use git apply if there is no problem with the patch.


2022-09-30 15:01

I also thought that the question was that you wanted to introduce a GitHub clone that works on-play (so-called).
Then, if you search by keywords such as "github alternatives on-premises", the candidate will be a hit.For example:

(is also found in the above link) Using githooks to manage with the original Git certainly exists as one of these options.

Most of them are Unix-like OSes, and I think Windows has a limited choice.

As far as I know, GitBucket runs on JVM and can also be deployed on Windows (Reference).


2022-09-30 15:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.