How to clone a GitHub project and switch to an existing Branch locally.

DENNIS ILUMA
Jun 7, 2021

--

1, If you haven’t clone the project, open your terminal, clone the project by using “git clone <the-gitHub-url-of-the-project>” i.e, git clone https//github.com/dennisiluma/MyClads

1, Still on the terminal switch to the project folder using “cd <project name>’ i.e, cd MyClads

3, Fetch the remote repo. Use “git fetch”.This will fetch the remote repo and update it locally on your machine.

2, To switched to a branch, use “git checkout <branch-name>”.

i.e git checkout feature-email-confirmation

3 or, “git switch <branch name>” i.e git switch feature-email-confirmation

4 That’s all.You are on the branch.

5. Note, Ignor the quotations and tags. i.e <>

--

--

DENNIS ILUMA
DENNIS ILUMA

Written by DENNIS ILUMA

0 Followers

Software engineer. Majors in Java, AI, Frontend, DevOps & Cloud.

No responses yet