You can change the default branch (after your first commit) with git branch -m newname in the command line. In the left sidebar, you should now see a list of changed files showing all of the files in the wp-content directory (or your theme or plugin directory).Ĭommit your repository via GitHub desktop by entering your Summary (initial commit is pretty standard for a repository’s first commit) and clicking “Commit to master.”.In the Add Local Repository dialog that pops up, click “Choose” and navigate to the directory where you initialized your Git repository.Open GitHub Desktop and go to File > Add Local Repository.So that you can manage your repository in GitHub Desktop, you’ll first need to add it there. If you prefer to use the command line to manage your repository, feel free to skip the rest of this help doc. Now you’re ready to add the repository in GitHub desktop. If you only need to track the code for a specific custom theme or plugin, create your repository in that theme or plugin directory. In order to avoid conflicts later, let’s just track the code that we’re responsible for. We’re only going to, at most, track the wp-content directory because like most managed WordPress hosts, here at Flywheel, we lock down WordPress core files. Open Local, click the plus sign (+) in the lower-left corner and fill in your site details to create your new site. Kick things off by creating a new site in Local You’ll also need to install Git on your local machine so you can run Git commands locally. Note, if this is your first time using GitHub and you haven’t already signed up, you’ll first need to create an account o n GitHub. If you’d rather use the command line for your Git workflow, you can use that instead. GitHub Desktop is great for those of us who prefer a more visual interface over the command line, so we’re going to use it here too. Git is the most popular version control software and GitHub is the largest Git host, which is why we’re going to focus on using it with Local for this tutorial.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |