The pupose of this workshop is to get familiar with using a GitHub.
This repository has presentation, which might be usefull before participating in the workshop. Especially if this is the first time you are using version control system.
- Use template "feature/<issueId>/<kebab-case-branch-name>
- Use template "#<issueId> <message>"
- Use the present tense ("Add page" not "Added page")
- Use the imperative mood ("Move class to..." not "Moves class to...")
- Length of message should be as short as possible
- Use template "#<issueId> <pull request title>
- Create a github account on: LINK
- Or use your existing account
- Or use your Microsoft email account
- Install the Git client to manage repository locally
- Git Bash
- GitHub Desktop Client
- Remember to change default text editor during instalation
- Create local folder for the purposes of the training
- Open folder in the Git Bash or open Desktop Client
- Let others know that you finished preparing the environment
- Clone the repository with the given URL
- $ git clone
- Get inside and check for its content
- Pull the newest changes from the remote repository
- $ git pull
- Create a new branch for yourself with following format:
- {name}/{issueId}/update-hall-of-fame
- $ git branch {branch}
- Switch to your new branch
- $ git checkout {branch}
- Follow git error message on how to connect to remote branch
- Open the file with your favoureite text editor
- Add the new line with your name and the date in following format
- {Name}-{Date}
- Save and close the file
- Go back to application/console
- Add changes to the Staging area
- $ add {name of the file}
- Check the status and differences
- $ git status
- $ git diff
- Commit the staged files
- $ git commit
- $ git commit –m „{meaningfull text}”
- Check your remote branches
- $ git remote -v
- Push your changes to the remote repository
- $ git push {remote} {branch}
- Go to the GitHub page and log into training repository
- Switch to your branch and create a Pull Request
- Add someone as a reviewer
- DO NOT MERGE untill your review is accepted
- Make requested changes and resolve any conflicts
- This means use GitHub, or your local repository to adjust the code, so the changes can be automaticaly merged by git
- IF ACCEPTED - MERGE