How Do I Upload My WordPress Site to GitHub?

When you want to share your WordPress site with other developers or the community, you can upload it to GitHub. GitHub is a code hosting and collaboration platform used by developers around the world. Uploading your WordPress site to GitHub is easy:

1. Log in to GitHub.

2. Click the “Settings” icon in the upper right corner of the screen.

3. Under “General,” click the “Upload” link.

4. In the “Files to upload” field, type the URL of your WordPress site.

5. Click the “Upload” button.

6. On the “Upload successful” page, click the “Next” button.

7. In the “Uploads page,” click the “Checkout” button.

8. In the “GitHub page for this repository” field, type the name of your GitHub repository.

9. Click the “Create new branch” button.

10. In the “Branches” field, type the name of the branch you want to create.

11. Click the “Create branch” button.

12. In the “Commit message” field, type a message that describes the changes you made to your WordPress site.

13. Click the “Commit” button.

14. On the “Push to remote” page, type the URL of the branch you just created in the “Remote” field.

15. Click the “Push” button.

16. On the “Commit history” page, click the “Show commit history” button.

17. In the “Commit history” dialog box, click the “Show diffs” button.

18. In the “Commit diffs” dialog box, click the “Show author” button.

19. In the “Author” dialog box, type the name of the person who created the commit.

20. Click the “Close” button.

21. On the “View your repository” page, click the “Checkout” button.

22.

23. Click the “Clone” button.

24. In the “Clone URL” field, type the URL of the repository you just cloned.

25.

26. On the “WordPress site” page, click the “Install” button.

27. In the “Install location” field, type the location where you want WordPress to be installed.

28. In the “WordPress site name” field, type the name of your WordPress site.

29. Click the “Install” button.

30. On the “Finish installing WordPress” page, click the “Close” button.

31. On the “Your site is up and running” page, click the “Thank you” button.

32. Click the “Log out” button.

33. Click the “Close” button in the upper right corner of the screen.

34. Click the “Home” button in the upper left corner of the screen.

35. Click the “Site info” button in the upper right corner of the screen.

36. In the “Site info” dialog box, click the “GitHub” link.

37.

38. In the “Commits” field, type the number of commits made to your WordPress site.

39. In the “Stars” field, type the number of stars given to your WordPress site by the GitHub community.

40. In the “Repository name” field, type the name of the repository in which your WordPress site is located.

41. In the “Description” field, type a short description of your WordPress site.

42.

43.

44. Click the “Site info” button in the upper right.