Once the Git repository is created, you'll have a new directory in your current directory with the name of the Git repository.To paste that address into the command line right-click in the command line window and click paste. Once copied go back to the command line and type the following command, where is the address you copied.For example, we've created a repository called "example" at address. To find the repository address, go to a repository on GitHub and click the Clone or download repository link to get the address. Once the above steps are completed, you'll be ready to connect to a remote repository.Next, enter your e-mail address by typing the following command, where is your e-mail address. After entering the above command, you'll be returned to the command prompt.Type the following command to configure your Git username, where will be your GitHub username.How to change a directory or open a folder.From the command line, move to the directory you want to contain your Git repository.If you are new to GitHub, see: How to create a GitHub repository. Below are the steps on how you can connect to a GitHub repository. In our example, we're using GitHub as a storage for our remote repository. How to use the Windows command line (DOS).Ĭonfiguring and connecting to a remote repository.If you're new to the command line, you can find help with navigating the Windows command line and Linux (Bash) through the links below. Editing can still be done through a text editor or IDE of your choice. You'll only be using the command line to interface with Git to manage the files. We highly recommend you use Git from the command line and not use a GUI interface. Once completed, you can check the option to Launch Git Bash if you want to open a Bash command line or, if you selected the Windows command line, run Git from the Windows command line.On the Configuring extra options window, leave the default options checked unless you need symbolic links. ![]()
0 Comments
Leave a Reply. |