The official Git documentation includes install instructions for Linux, Mac, and Windows. I would recommend installing Git via the installer for your operating system rather than the "Install from Source" option. Choose Your Git ClientĪ GUI client isn't required to use Git for version control, but it can certainly make the experience more pleasant. The alternative is to use the Git command in command prompt. For this tutorial I'll be using my favorite Git client, GitKraken. I'll also include the Git commands for anyone following along in command prompt. If you want to check out other options for Git clients, the Git website has a pretty extensive list. It's free to create a GitHub account and create public repositories. Once you have a GitHub account, you will need to configure an SSH key. This allows GitHub to authenticate you without providing your username and password every time. If you don't already have an SSH key created, you can follow GitHub's guide to generating a new key. Once you have your SSH key, you can add it to your GitHub account. If you are using a Git client, you may also need to configure it to use your SSH key. Then select Authentication and set the paths for your public and private keys.įor GitKraken, you select File > Preferences from the main menu. If you prefer, you can even have GitKraken create and configure an SSH key for you. Just make sure that the same key is added to your GitHub account. The first step in publishing any content to GitHub is to create a local repository (repo) to track your work. Steps for creating a new local repo with GitKraken This folder will contain all of the files you want to publish to GitHub. To create a new repository in GitKraken, select File > Init Repo from the main menu.There will be several options for different types of repositories, but for this tutorial we'll keep the default Local Only selection. Next, choose a folder to be your new repository.You can pick an empty folder, or one that already has files in it you won't lose your changes. The dialog also includes settings for default.We'll skip these options for this tutorial.Ĭreating a new local repo with the "git init" command Navigate to the folder you want to use as your repository. You can pick an empty folder, or one that already has files in it you won't lose your changes.Use the git init command to set up the new repository.Ĭ:\MyGit\Mine\HelloWorld> git init Add Your Project Files.When adding files to an Aras Community project repo, we recommend the following folder structure: Now that we have a repository, we want to add our project files. CodeTree: any files that need to be added/modified in the code tree.Screenshots: any screenshots, videos, or gifs of the project.Import: any import packages for the Aras database.Documentation: any files or documents explaining the project. If your project doesn't need a particular folder, you can leave it out. You can also include other folders if your project has files that don't fall into the categories described above. In addition to your project's code, your repository should also include two markdown files: We just try to use the same general structure for our projects so it's easier to identify files. The README.md file contains the content displayed on your project's GitHub landing page. It should include basic details about your project, like a brief description, which versions of Innovator your project supports, how to install your project, and basic steps to use your project.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |