-
Notifications
You must be signed in to change notification settings - Fork 256
Rename homework #46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Closed
Closed
Rename homework #46
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
70648cd
move assignment to shell repo
dtxe c3d5c06
Merge branch 'main' of https://github.com/UofT-DSI/git
dtxe 316677d
add git practice homework problems
dtxe 526df35
add more prominent notice about optional nature of homework
dtxe 009e2a7
add ghpages deploy action
dtxe f43a8e2
update explanations in git basics problem set
dtxe fbc211d
rename homework to practice problems
dtxe 1e54ced
Merge branch 'main' into rename_homework
RohanAlexander File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,37 @@ | ||
| # Git Advanced Practice Problem | ||
|
|
||
| **Note**: Practice problems are not assessed and are provided for your own personal practice. Feel free to discuss these with your peers and learning support during work sessions! | ||
|
|
||
| ## Tasks | ||
| The `dtxe/DSI_git_assignment` repository contains a short Python script that | ||
| loads the TTC Bus Delay dataset, computes the average delay by route, then | ||
| plots the average delay as a histogram. | ||
| s | ||
| 1. Clone this repository: https://github.com/dtxe/DSI_git_assignment | ||
| * `git clone` | ||
|
|
||
| ### Task 1 | ||
| Unfortunately, this code has a bug that would prevent it from working. | ||
| Fortunately, the bug has been fixed in the `bugfix1` branch. We will | ||
| get this code working by merging the fixes. | ||
|
|
||
| 1. Check the current status and commit history | ||
| * `git status` and `git log` | ||
| 2. Merge the `bugfix1` branch into the main branch | ||
|
|
||
| ### Task 2 | ||
| We've also been working on an additional feature in a separate branch. | ||
| This allows us to aggregate the data by any arbitrary column in the DataFrame, not just the route. | ||
|
|
||
| Let's merge this feature in. | ||
|
|
||
| 1. Merge the `feature1` branch into the main branch. | ||
|
|
||
| ### Task 3 | ||
| Uh oh! It looks like there's a merge conflict between the bugfix and the new feature! | ||
|
|
||
| 1. Resolve the merge conflict in your choice of editor | ||
| * We suggest using VSCode! | ||
| 2. Complete the merge after fixing the conflict. | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| # Git Basic Practice Problems | ||
|
|
||
| Load the basic practice problems in your browser here: https://uoft-dsi.github.io/git/interactive_problems.html#git_basics | ||
|
|
||
| **Note**: Practice problems are not assessed and are provided for your own personal practice. Feel free to discuss these with your peers and learning support during work sessions! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| # Git Moderate Practice Problem | ||
|
|
||
| **Note**: Practice problems are not assessed and are provided for your own personal practice. Feel free to discuss these with your peers and learning support during work sessions! | ||
|
|
||
| ## Tasks | ||
| ### Task 1 | ||
| 1. Create a new directory named `githomework1`. | ||
| 2. Initialize an empty git repository with `git init`. | ||
| 3. Using your choice of text editor, create a README.md file. | ||
| 4. Using the git command line, add this file to staging, then commit the file to your repository with a suitable commit message. | ||
| * `git add <filename>` then `git commit` | ||
| 5. Write a suitable commit message and finalize your commit | ||
| 8. Show the commit history | ||
| * `git log` | ||
|
|
||
|
|
||
| ### Task 2 | ||
| 1. Create a new public repository on GitHub | ||
| 2. Add your GitHub repository as a remote for your local `githomework1` repository | ||
| * `git remote add origin <url>` | ||
| 3. Push your local `githomework1` repository to GitHub | ||
|
|
||
|
|
||
| ### Task 3 | ||
| 1. Create a new branch called `playing-with-bash` | ||
| 2. Create 5 text files with the names up to you, and with placeholder contents | ||
| 4. Stage, commit and push your work on GitHub | ||
| 5. Open up a pull request | ||
|
|
||
| ### Task 4 | ||
| 1. Explore your repository on GitHub and check that all your files and commit messages are here. | ||
| * If not, did you push all your branches? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.