3/30/2023 0 Comments Git add remote origin![]() This is a very important step in creating your remote repo. The next thing we need to look at is the Initialize this repository with a README checkbox. ![]() If you have spaces in your repo name, GitHub will automatically replace them with hyphens. That tells us that our repo name has no problems and can be used. You will notice that GitHub has added a green checkmark in the text field where we typed our repo name. We will use my-first-repository as the name of our remote repository on GitHub. In this guide, we are going to create a remote repository on where we can push the local repository that we created in the last chapter.Īs you will see in this example, your local and remote repos do not have to have the same name. This is personal preference, and you may separate your words with any character you want except a space or tab. You cannot however have two repos by the same name under your account.Ĭhoose a descriptive name based on your project.Īs far as naming conventions, some people separate words with hyphens and some use underscores. That means that someone else can have a repository on GitHub named my-awesome-repo, and you can have one as well. The repository name has to be unique to your account. Click on that link.Ĭhoosing a repository name comes next. When you click on that, you will see a menu that includes a New Repository link. Whenever you are logged in to the GitHub website, you will see a plus icon in the upper right corner. Now that you have set up your GitHub account, it is time to learn how to use it. Some of these images may show the repository branch name as master instead of main this is not crucial for our purposes. ![]() The GitHub interface may have changed since we created these images, so the content may look a bit different. Some of the images in this chapter show pages on GitHub.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |