Github Integration
The GitHub integration in Advanced File Manager allows you to connect your GitHub account directly to your WordPress dashboard. You can pull files from your repositories, push changes back, and even track commit history—all without leaving your site.
If you haven’t yet upgraded to the Pro business plan, now’s the perfect time! Buy now to unlock this powerful feature and take your file management to the next level. Get the Advanced File Manager Plan!
If you already have a GitHub account you wish to connect, click here, or use the GitHub Desktop app.
Let’s Get Started
Step 1: Enable GitHub Integration
- Navigate to WordPress Admin Dashboard > File Manager > Integrations tab.

- In Integrations, locate the GitHub card and click the toggle to enable the GitHub integration.

- After enabling the GitHub , click on the Settings in the GitHub card.

- In the GitHub Settings, add an Alias name.

- Next you need to add your GitHub Email, GitHub Username and GitHub PAT.
- For GitHub PAT (personal access token), click on the link to redirect to the GitHub account.

Step 2: Configure GitHub PAT
- In GitHub, click on Generate new token.

- Choose either Fine-grained tokens or Tokens(classic).
- Configure your Personal Access Token.
- Add Permissions.
- Click on the Generate Token button.

- The new GitHub PAT will be generated.
- Copy the GitHub PAT.

Step 3: Add GitHub PAT your Plugin
- Go back to the GitHub settings page in File Manager > Integrations.
- Add the GitHub Username.
- Paste the GitHub PAT.
- Click on the Save Changes.

Step 4: GitHub Actions
- After saving your settings, a new section called GitHub Actions will appear. Here you’ll find options to manage repositories and branches.
- You will see the following fields and buttons:
- Fetch Repositories – Click to fetch all repositories linked to your account.
- GitHub Repository – Select a repository from the dropdown.
- GitHub Branch – Select a branch from the chosen repository.
- GitHub Actions – Four main options:
- Pull Files from GitHub
- Check Status
- Push All Changes to GitHub
- Change Connection

- Click on the Fetch Repositories button to fetch your GitHub repositories.

- After fetching the repositories, select the repository from GitHub Repository dropdown.
- Note: It will only fetch the Public repositories.
- Then select a branch from the GitHub Branch dropdown.

Step 5: Working with GitHub
Pull Files from GitHub
- Click Pull Files from GitHub.

- A confirmation pop-up will appear.
- Click on Yes, Pull Files to proceed.

Check Status
- Click Check Status to view repository details.
- A pop-up will display:
- Repository name
- Selected branch
- Total commits
- Commit details (ID, author, date/time)
- A View on GitHub button for each commit

Push All Changes to GitHub
- Click Push All Changes to GitHub.
- A pop-up will appear showing:
- File name.
- Changes made in each file.
- Select files to push.
- Select All Files.
- Commit message.
- Description (Optional).
- Push to GitHub button.
- Discard changes button.

Change Connection
- Click Change Connection if you need to reconnect.
- This clears your GitHub Action settings but keeps the Access Directory intact.

Note: To change the GitHub branch, select the desired branch from the dropdown and click the Save Changes button. The branch will not update unless you save the changes.
Access GitHub in File Manager
- Once configured, you can seamlessly pull, push, and track changes between Advanced File Manager and your GitHub repositories.

Need Help?
If you encounter any issues while setting up GitHub integration, please reach out to our Support Team. We’ll guide you step-by-step to ensure your setup is successful.