Em qui, 8 de jul de 2021 22:48, Angelo Grebenarov grebenarov@gmail.com escreveu:
Hi all,
Hi Angelo,
I have a lot of experience with PHP/MySQL but not much with Git. I figure
this question should be an easy one for you but I can't figure it out and would really appreciate your answer(s).
Here is my question:
I've downloaded and installed phpMyAdmin from Git using the "composer update" and "yarn install --production" commands. The installation was fine and *I fixed a bug that happens to be in the \themes\pmahomme\css\theme.css file*. So far so good but when I tried "commit"-ing the change it turns out the file *theme.css* in NOT EVEN THERE on the original GitHub master repo, due to - (of course) it's NOT installed and the \themes\pmahomme\css\ folder is actually empty (no files at all there).
The theme.css file is a generated file, that is why it is not in the repository. You have to change the files inside the scss directory and then run "yarn build" to compile the Sass files into CSS files.
-- How can I commit a change to theme.css if theme.css is not even there in
master?
The theme.css is an ignored file. See the .gitignore file.
-- Also: I forked the master repo to MY GitHub account and then cloned it
down to my local machine. *Now do I commit DIRECTLY TO phpmyadmin/phpmyadmin -> master?* (Different places have that information differently - some do NOT mention I need to fork - but suggest cloning directly from "master" - I wanted to know ONE CORRECT WORKING WAY of the whole procedure.)
You can't commit directly to phpmyadmin/phpmyadmin repository because you don't have the necessary permissions. But you can pull from this repository, since it is public. The common workflow for GitHub is to fork the repository and clone the forked repository locally. Then you can add the upstream repository as an additional remote with the "git remote" command to be able to pull new changes. If you want to contribute some changes, you can create a new branch, then commit the changes, then push this branch to your forked repository, and finally open a pull request on GitHub.
I would really appreciate your answers to the (what turned out to be) 2
questions.
Thank you,
Angelo Grebenarov _______________________________________________ Developers mailing list Developers@phpmyadmin.net https://lists.phpmyadmin.net/mailman/listinfo/developers
Maurício