From the course: Learning GitHub

Unlock the full course today

Join today to access over 24,000 courses taught by industry experts.

Create a branch

Create a branch

- [Instructor] Let's start to create our first branch from a command line. Let's navigate to the homepage of our repository, and click on the green button Code at the top of our read me file. Select HTTPS tab on the local tab, and click on the copy button where is the link. Now we can open our Windows terminal, and launch the command git clone and paste the link of our repository. So we can open our terminal, and start typing git clone and paste link. In this case, git created a new folder with the same name of our repository. And if I type the command, cd, and the name of the repository like LearningGithub002, my terminal switch to the current folder with the name of the repository. Now we are inside our local copy of the repository. If you installed Oh My Posh, you can see the name of the current branch directly on the screen. If you want to list all the branches in your folder, you can type the command git branch --…

Contents