Skip to content

mpa-prg/attendance

Repository files navigation

Git and GitHub - Attendance list

Task 1

Add a new empty text file named after you name_surname.txt to the source repository via pull request.

Download files from GitHub

Basic Git settings
  • Configure the Git editor
git config --global core.editor notepad
  • Configure your name and email address
git config --global user.name "Zuzana Nova"
git config --global user.email [email protected]
  • Check current settings
git config --global --list
  • Create a fork on your GitHub account. On the GitHub page of this repository find a Fork button in the upper right corner.

  • Clone forked repository from your GitHub page to your computer:

git clone <fork repository address>
  • In a local repository, set new remote for a project repository:
git remote add upstream https://github.com/mpa-prg/attendance.git

Send files to GitHub

Create a new commit and send new changes to your remote repository.

  • Add file to a new commit.
git add <file_name>
  • Create a new commit, enter commit message, save the file and close it.
git commit
  • Send a new commit to your GitHub repository.
git push origin main

Create a pull request

On the GitHub page of your fork, you should be able to click on the Contribute button and then on the Open pull request button. Here check or edit the description of changes and confirm it by clicking on the Create pull request button.

Get the latest version of source repository

git pull upstream main

Task 2

Add your mood or write a short message to the text file named after you name_surname.txt in the source repository.

  • In your local repository attendance, open a file named after you and add your mood today or write a short message.
  • Create a new commit.
  • Send the commit to your fork on GitHub.
  • Open pull request.
  • Wait for pull request merge and then download the latest version of project repository.
  • Check commit history.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published