I
I
Ilya2021-07-26 20:01:01
git
Ilya, 2021-07-26 20:01:01

Do I need to make a pull request for myself every time?

If I am the owner of the repository, then is it necessary to make a pull request with any push? And in general, is it normal that after push changes do not come to the main branch, but only a second master is created and it needs to be merge, only after this the changes are applied?
Such a refs structure

...1cb551ab97e86108affb3 refs/heads/main
...1cb551ab97e86108affb3 refs/heads/master
...c7c178d43d595e77ef67b refs/remotes/origin/main
...1cb551ab97e86108affb3 refs/remotes/origin/master

I push like this
git push -u origin master

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Deleting Account, 2021-07-26
@hugga

If one is in the turnip, you create the develop branch and push it there, and do a PR from develop to main. In main, only working code, in develop, you can make commits with the WIP: tag. So you will have a branch for development, and a branch in which the program always works, and as it should. Plus, this way you can implement simple CI / CD, deploy by pushing in main, and when pushing to develop, run tests, linters, etc.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question