0% found this document useful (0 votes)
7 views

Git Hub How To

git hub how to

Uploaded by

river.shofay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
7 views

Git Hub How To

git hub how to

Uploaded by

river.shofay
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 7

1.

Navigate to the project:


https://github.com/Darling-Downs-Adventsit-College/2024_Mini_Project
2. Fork the repository by clicking the ‘Fork’ tab, then ‘create a fork’.

3. On the following confirmation page, click ‘Create fork’. This will create a clone of the project
on your own github profile which will be linked to the original repository.
4. From your fork of the project, click the ‘Code’ button, then click the ‘HTTPS’ tab and copy the
address.

5. Open ‘Visual Studio Code’ and click the file explorer, then ‘Open Folder’. From the dialog box,
find the folder you want to clone your repo to, then click ‘Select Folder’.
6. From the ‘Terminal’ tab on Visual Studio Code, click ‘New Terminal’

7. Down the bottom of the window, a Terminal should display, type: ‘git clone ‘ and paste the
address copied in step 4 on the end and press enter.
8. The repository should be cloned and end up locally in the directory you ran the ‘git clone’
from. You can then type ‘cd ‘ and the name of the project, then enter, to change the
terminal’s directory to the repo.

9. Make changes to the project and save the files. Then in the terminal type: ‘git add –all’ and
enter. This will stage all files changed to the upcoming commit. Then type ‘git commit -m
“commit message here” ’ and enter to commit the changes (replace the text “commit
message here” with a message describing your changes, keeping the quotation marks).
10. You can make multiple commits if you want before you ‘push’ back to the git hub repo, but
one is all that’s needed. When you are ready, type ‘git push -u origin main’ and press enter.

11. Return to your repository on git hub and refresh the page, you should see that its updated to
represent the changes you made in your local repository. To contribute these changes to the
main repository, click ‘Contribute’ and then ‘Open pull request’.
12. You should see a confirmation page which will show you the changes made, click ‘Create pull
request’.

13. Add a title and description so that the people reviewing the pull request will know what you
were trying to achieve with your changes. Then click ‘Create pull request’.
14. You will then see the result of the pull request, when it has been approved it will be merged
with the main repository.

You might also like