- Open the desktop version of Pinegrow - this plugin will not work with Pinegrow Live
- Select File -> Manage libraries & plugins...
- Click on "Load plugin" at the bottom
- Navigate to the plugin folder and select "GHForPG.js"
- I recommend restarting Pinegrow, but this isn't neccessary.
This plugin will add a new "GitHub" menu to Pinegrow. There are five selections when a project is not open and two additional items when one is open.
The setting selection opens a modal to add in your user name, email, and personal token for GitHub. These will be stored in a localStorage variable in Pinegrow and should be retained between restarts. There is a "Retrieve Settings" button that will get the user name and email for a project, but not the authorization token. All further actions by the plugin require authorization.
This will allow the creation of a new GitHub repo, either from scratch or from an existing project. If the project doesn't exist, a base folder will be created that should then be opened as a Pinegrow project.
This will create a local copy of a repo from GitHub and link this local copy to the repo on GitHub
This will create a local copy and a new branch of an existing GitHub repo.
This will create a local copy and a duplicate of a repo on GitHub from a foreign account into the user's account.
This allows you to select which files are committed to a repo. It flags changed and added files.
-
Select files and click "Stage files"
-If you make a mistake you can select a file and click "Unstage files"
-
Enter the author email
-
Enter a commit message
-
Click on "Commit files"
-
Click on "Push files"
This will retrieve any changes made to the GitHub repo that aren't present in the local repo.