COP4111C Team 2 | 3/15/2022 9:07pm |
---|---|
COP4111C Team 2 | 3/15/2022 9:07pm |
# | Member Name |
---|---|
1. | Kishon Diaz |
One team member is to complete the following steps in the remote repository on the GitHub web site:
- Select the
Projects
link. - Choose the
Create a project
button. - Enter a name for the project. e.g., Project 1
- Enter a description of the project.
- Select
Automated kanban
as the template. - Choose the
Create project
button. - Three notes were automatically added in the To do column. Read the notes and then for each note, select the
...
in the top right corner of the note and selectDelete note
. SelectOK
to confirm deletion.
See About project boards for more help.
In GitHub:
- Select the
<> Code
link. - Select the green
Code
button. - Ensure HTTPS is selected and click the copy button to copy the remote repository URL.
In Git Bash (Windows) or Terminal (Mac, Linux)
- Navigate to the folder where the repository should be cloned into.
- Issue the
git clone
command followed by pasting the previously copied remote repository URL. - Set your user name and email using the
git config
command. e.g.,git config user.name "your name"
andgit config user.email "your email address"
. - Check that the correct username and email is set using the
git config -l
command. - Setting and checking
user.name
anduser.email
needs to be done every time the remote repository is cloned to a local repository.
Create a develop branch. (Only needs to be done once in a repository.)
- Create a branch named develop off the main branch. e.g.,
git branch develop
- Push the branch to the remote repository. e.g.,
git push -u origin develop
Creation of files should not start until the develop branch has been pushed to the remote repository. - Switch to the develop branch. e.g.,
git checkout develop
- Edit the README.md file in the local repository, then at the top, replace XXX9999X with the course number, replace the words Replace with team name with your teams' name, replace the words Replace with the current date and time with the current date/time (e.g., Monday January 10, 2022 - 11:45 AM) and replace the first Replace with full name words with your full name. Save the changes.
- Stage the changes. e.g.,
git add README.md
- Commit the changes. e.g.,
git commit -m "Replace course number, team date/time and name"
- Push the changes to the remote repository. e.g.,
git push
Merge the develop branch to the main branch.
- Switch to the main branch. e.g.,
git checkout main
- Merge the develop branch into the main branch. e.g.,
git merge develop
- Push the changes to the remote repository. e.g.,
git push
- Switch to the develop branch. e.g.,
git checkout develop
Notify other team members that the lab repository is setup and they can join the repository.
Wait until ALL the steps above done by one team member have been completed.
In GitHub:
- Select the
<> Code
link. - Select the green
Code
button. - Ensure HTTPS is selected and click the copy button to copy the remote repository URL.
In Git Bash (Windows) or Terminal (Mac, Linux)
- Navigate to the folder where the repository should be cloned into.
- Issue the
git clone
command followed by pasting the previously copied remote repository URL. - Set your user name and email using the
git config
command. e.g.,git config user.name "your name"
andgit config user.email "your email address"
. - Check that the correct username and email is set using the
git config -l
command. - Setting and checking
user.name
anduser.email
needs to be done every time the remote repository is cloned to a local repository.
Replace name in Member Name column.
- Switch to the develop branch. e.g.,
git checkout develop
- Edit the README.md file in the local repository, then at the top, replace the next words Replace with full name with your full name. Save the change.
- Stage the change. e.g.,
git add README.md
- Commit the change. e.g.,
git commit -m "Replace name"
- Push the changes to the remote repository. e.g.,
git push
Merge the develop branch to the main branch.
- Switch to the main branch. e.g.,
git checkout main
- Merge the develop branch into the main branch. e.g.,
git merge develop
- Push the changes to the remote repository. e.g.,
git push
- Switch to the develop branch. e.g.,
git checkout develop
Steps to make changes
In GitHub:
- Assign the issue that will be worked on to yourself. See Issues below.
- If no issue exists, open a new issue and assign it to the project board and to yourself. e.g.,
Create site home page
*(Ensure that the title is unique and succinct. A detailed description of what work is be completed must be entered.) - Double check that the issue is in the To do column of the assigned project board.
- Move the issue to the In progress column.
In Git Bash (Windows) or Terminal (Mac, Linux):
- Navigate to the folder where the repository was cloned into.
- Check that the correct username and email is set using the
git config -l
command. - Switch to the develop branch and execute a
git pull
to get the latest code from the remote repository. - Create a new feature branch and switch to the new branch. e.g.,
git branch feature/homepage
Note: Replace homepage with a word the succinctly describes the issue. - Add, modify and/or delete a file(s).
- When the changes are complete:
- test the changes
- add the file(s) to the staging area
- commit the changes ensuring that the commit message is unique and summarizes the change
- switch to the develop branch
- execute a
git pull
to get the latest code from the remote repository - merge the changes to the develop branch from the new branch previously created
- resolve merge conflicts if there are any
- test that the code still works after the merge conflict is fixed
- add the file(s) fixed from the merge conflict to the staging area
- commit the fixed file(s)
- push the develop branch to the remote repository
- create a pull request on the remote repository (GitHub) from the develop branch to the main branch.
- review the pull request and merge to the main branch on the remote repository
- Delete the branch previously created for coding the changes from the local and remote repositories.
- Close the issue after all required changes have been committed. This will move the issue to the Done column of the project board.
Repeat these steps each time changes are to be made. NOTE: Ensure that a git pull
is regularly executed while checked out on the develop branch to get any changes that have been pushed to the develop branch by other team members.
To keep the develop and main in sync, complete the following steps in the local repository:
- Switch to the main branch. e.g.,
git checkout main
- Pull the changes from the remote repository. e.g.,
git pull
- Switch to the develop branch. e.g.,
git checkout develop
- Merge the main branch into the develop branch. e.g.,
git merge main
- Push the changes to the remote repository. e.g.,
git push
- On the remote repository the develop branch will be even with the main branch.
- In the repository, select the
Issues
link. - Choose
New issue
. - Enter a
Title
for the issue. - Enter details in the
Write
tab. - From the Projects section, select the previously created project. See Adding issues and pull requests to a project board for more help.
- Choose
Submit new issue
.
- In the repository, select the
Issues
link. - Select the issue that needs to be assigned.
- Choose the
Assignees
option. - Select your name as the assignee to add to the issue.
- In the repository, select the
Issues
link. - Choose the
Assignee
drop down. - Select your username from the list.
- In the repository, select the
Issues
link. - Select the issue that needs to assigned to one or more group members.
- Enter closing details in the
Write
tab. - Choose
Close and comment
.
- In the repository, select the
Issues
link. - Ensure
Closed
issues are displayed. - Select the issue that needs to be reopened.
- Enter reopening details in the
Write
tab. - Choose
Reopen issue
.
See About issues for more help.
Discussions are the official method of communication via electronic means for this lab. If the professor is asked to resolve a dispute between team members, only communications between the team members made in the repository discussions will be reviewed.
- When in the repository, select the
Discussions
link. If the Discussions link is not shown, contact the professor and request that discussions be enabled for the repository. - Choose the
New discussion
button. - Select a category.
- Enter a title for the discussion at the top of the page.
- Enter details in the
Write
tab. Use Markdown if applicable. - To @ mention a team member, use the
@
symbol in the comment to bring up a list of repository members and choose a team member. Note: All team members of the repository and a team comprising ALL students in the class are listed. Ensure that the correct team member is being @ mentioned. Do not select the class team. - Choose
Start discussion
.
- When in the repository, select the
Discussions
link. - Select the title of the discussion to be replied to.
- If replying to a comment in the discussion, enter details into the
Write a reply
field and then choose theReply
button. - If no previous comment or not replying to a comment, enter details in the
Write
tab. Use Markdown if applicable. Then choose theComment
button.
See About team discussions for more help.