![]() ![]() ![]() If you're using an Apple Silicon Mac (M1) then you'll need to run the following commands before using yarn: This will open a new terminal window within Visual Studio Code:ĭon't worry! We only need to run a few commands in the command line. Once you have Visual Studio Code open, select the Terminal menu option. Dialogs may appear around permissions and trust as you open Visual Studio Code. To view the code for the website click Open in Visual Studio Code. ![]() Once the clone has completed the GitHub Desktop interface will change to the following: Once GitHub Desktop has opened you will be prompted to confirm the repository that is being cloned and the location on disk where you wish the code to be stored.Ĭlick Clone to clone the repository to your local disk. Select the affirmative action that has text such as Open GitHub Desktop. You will then be prompted by the browser to confirm if you want to open the GitHub Desktop application. You can also clone the repository with GitHub Desktop installed, from the repository page, click the Code button and select Open with GitHub Desktop from the dropdown that appears. You can clone the codebase from the command line using the following command: To work on it locally, first you need to clone it to your disk: You may also want to familiarize yourself with these resources: If you are unfamiliar with using Git from the command line (or just prefer graphical interfaces), use the GitHub Desktop app. Yarn (version 1.x) – package manager for Node.js.In order to run the PostHog website locally, you need the following installed: This is the recommended method as it allows you to quickly preview your changes, as well as perform more complex changes easily.īelow, we'll explain how to set up option two. You can run the website locally and make changes there by creating a branch of the master codebase, committing changes to that branch and raising a pull request to merge those changes.This method is suitable for text-only edits and basic file manipulation, such as renaming. In this situation you must edit the page using the GitHub web editor interface. You can create a pull request in GitHub for any page that has an Edit this page link on it.You can contribute to the PostHog documentation, handbook, and blog in two ways: ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |