Skip to content

Add a GIT manual - #15942

Closed
williamdes wants to merge 0 commit into
phpmyadmin:QA_5_0from
williamdes:git-guide
Closed

williamdes wants to merge 0 commit into
phpmyadmin:QA_5_0from
williamdes:git-guide

Conversation

@williamdes

@williamdes williamdes commented Feb 9, 2020 •

Copy link
Copy Markdown
Member

Please comment and try to help make it simple.
I can get to much technical sometimes.

I am writing it on mobile so I will add more content from my pc soon and change base

asked by @gurrrung #15819 (comment)

I could convert it to .rst format and chose a better folder, please suggest

@codecov

codecov Bot commented Feb 9, 2020 •

Copy link
Copy Markdown

Codecov Report

Merging #15942 into QA_5_0 will decrease coverage by 0.85%.
The diff coverage is 36.89%.

@@             Coverage Diff              @@
##             QA_5_0   #15942      +/-   ##
============================================
- Coverage     53.07%   52.21%   -0.86%     
- Complexity    14183    14879     +696     
============================================
  Files           482      468      -14     
  Lines         62221    61299     -922     
============================================
- Hits          33021    32005    -1016     
- Misses        29200    29294      +94

@williamdes

williamdes commented Feb 9, 2020 •

Copy link
Copy Markdown
Member Author

Comment thread .github/GIT_GUIDE.md Resolved
Comment thread .github/GIT_GUIDE.md Resolved
@kartik1000

Copy link
Copy Markdown
Contributor

@williamdes For signoff line you can add git commit --amend --signoff command.

@kartik1000

Copy link
Copy Markdown
Contributor

@williamdes Also we can add how to cherry pick the commits as it is often required when rebasing.

@williamdes
williamdes changed the base branch from master to QA_5_0 February 10, 2020 12:26
@williamdes

Copy link
Copy Markdown
Member Author

@williamdes For signoff line you can add git commit --amend --signoff command.

Done

@williamdes Also we can add how to cherry pick the commits as it is often required when rebasing.

Sure, I will add as much details as possible

@yashrajbothra

Copy link
Copy Markdown
Contributor

@williamdes

Copy link
Copy Markdown
Member Author

https://github.com/phpmyadmin/phpmyadmin/wiki/Git @williamdes aren't these similar?

Yes, maybe I should merge or create a new wiki page

@kartik1000

Copy link
Copy Markdown
Contributor

@williamdes What you are creating now is quite in brief and I think this is what is required rather than too long documentations. I think most of the people know the basics but what is specific to pMA and what they require is what they need to learn.

@yashrajbothra

Copy link
Copy Markdown
Contributor

If the Aim is to keep things short ,simple and point to point then its great.
But if our aim is to give breif explaination then making that old guide better is good idea IMO as its already in breif.

@victorphoenix3

Copy link
Copy Markdown
Contributor

@williamdes we should have a similar guide on how to set the Phpmyadmin system for development. It could include initial setup steps like cloning the repo in the var/www folder, setting allownopassword to true, running yarn install for recompiling scss, running phpstan, phpcbf , .tests/ci-phplint tests locally before submitting the PR.
It would make setup a lot easier for new contributers.

@rabeehrz

rabeehrz commented Feb 11, 2020 •

Copy link
Copy Markdown
Contributor

I think a section should be alloted for linting and compiling.
Running CSSLint and JSLint.
Compiling SCSS to CSS.

Also, a section explaining what purpose does a branch serve would be nice.

@williamdes

williamdes commented Feb 11, 2020 •

Copy link
Copy Markdown
Member Author

Thank you for all your comments ! 👍

NOTE: Inform contributors how much it is a bad idea of using main branches for PRs

F*** It did create #15754 (comment) ... 🤦‍♂️

@williamdes
williamdes force-pushed the git-guide branch 4 times, most recently from c16b85e to 3ae8e70 Compare February 13, 2020 23:00
@williamdes

Copy link
Copy Markdown
Member Author

Hi everybody
Please have a look https://github.com/phpmyadmin/phpmyadmin/pull/15942/files?short_path=b74d2c6#diff-b74d2c6a6e35fef3746c7fe1ef55f386

I added some requested details

@williamdes

Copy link
Copy Markdown
Member Author

@tabraiz961

Comment thread .github/GIT_GUIDE.md Resolved
Comment thread .github/GIT_GUIDE.md Resolved
@MauricioFauth

Copy link
Copy Markdown
Member

Related to #14746

@MauricioFauth MauricioFauth left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of this content can go to the CONTRIBUTING.md file and the rest can go to the Git wiki page.
Also I think we should keep the git commands as simple as possible and add a reference to the GitHub/Git documentation if the person wants to learn more about that command.

@stale

stale Bot commented May 1, 2020

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale Bot added the wontfix label May 1, 2020
@williamdes

Copy link
Copy Markdown
Member Author

Can someone help me split my PR ?

@stale stale Bot removed the wontfix label May 1, 2020
@ibennetch ibennetch self-assigned this May 1, 2020
@ibennetch

Copy link
Copy Markdown
Member

I can help you with this, but probably not today.

@williamdes

Copy link
Copy Markdown
Member Author

I can help you with this, but probably not today.

Thank you !
I will wait, no worries.

@stale

stale Bot commented Jul 3, 2020

Copy link
Copy Markdown

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants