- To fork the project, click the
Forkbutton located at the top right of the project.
- Navigate to your github account to find the newly forked repository.
- Copy the URL of the project to the clipboard.
- Clone the repository from your account into the
~/Projectsdirectory.- if you do not have a
~/Projectsdirectory, make one by executing the following command:mkdir ~/Projects
- navigate to the
~/Projectsdirectory by executing the following command:cd ~/Projects
- clone the project by executing the following command:
git clone https://github.com/ZipCodeCore/MyFirstFork
- if you do not have a
- edit the
my-namefile, by adding your name to the file.
- from a terminal navigate to the root directory of the cloned project.
- from the root directory of the project, execute the following commands:
- add all changes
git add .
- commit changes to be pushed
git commit -m 'I have added changes'
- push changes to your repository
git push -u origin main
- add all changes
- from the browser, navigate to the forked project from your github account.
- click the
Pull Requeststab. - select
New Pull Request