You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fork this repository using the button in the upper right.
Clone the forked version of the repository to your local workstation.
Create a feature branch with your name as the branch name (my branch would be called jim).
Change directories so you are in the chapter # that is specified in the title of this issue.
Edit page_1 and your name at the bottom of the file and save it.
Add the missing page_4 inside your chapter folder. The contents of the new page_4 should be your favorite TV show.
Run a git status to see what is modified from a previous version of history and what has not been tracked before.
Add all the changes you made above to the index.
Commit these changes to history and add a short message about what you changed.
Delete page_2. List the files in the directory (ls -lah) to ensure it was removed.
Run git diff to see the actual changes that were made.
Use git to undo the deletion of page_2 (running a git status will give you a hint about how to do this).
Add a FAKE password to page_3 and commit it to your history.
Undo the commit with your password in it and remove the change from your working directory.
Take a look at the .gitignore file in the base directory of the project. Use the contents of the file to figure out a filename you could create to store your password, that git will not track (hint the * character is a wildcard that matches any pattern).
Create a file inside your chapter directory that git will not track and add your fake password there. Run a git status to ensure no modifications have been recognized.
Put a comment in page_3 that says the name of the file you just created where the real password is stored.
Commit the changes to page_3 to history and add a short message.
[Optional] Add a remote called upstream that points to the initial repository ([email protected]:jimafisk/nber-git-training.git). Git pull any upstream changes.
Push all the code changes tracked on your branch to the origin remote repo.
Visit your forked repo in the browser. There should be a notification about recent changes. Click the button in the notification to create a pull request (PR) to the upstream repository (the jimafisk repo you initially forked).
In the PR description, tie the PR to this issue by writing: Fixes #<REPLACE WITH THIS ISSUE NUMBER>.
Assign someone from the group to review your PR.
Reviewers should visit the PR you created in the browser and see a notification that a review has been requested of them. They should begin their review and request that you change the TV show in page_4 to their favorite TV show instead of yours (You will also review someone else's PR, so do the same for them). They can do this with an inline comment and finish the review by "requesting changes".
In your local repository, make the changes your reviewer requested, commit the update to history and push once again to origin.
Reviewers should check the PR again once their partner says they've made the change. Notice how the updates are added automatically to the open PR - this highlights the beauty of feature branches to isolate updates.
Reviewers should approve the PR if page_4 now matches their own favorite TV show.
The developer who created the initial PR should be responsible for merging it into the codebase. Use the "squash and merge" option to consolidate changes related to the feature to a single commit in history.
Delete your feature branch locally and on remote for good housekeeping since the changes are now pulled into the project!
The text was updated successfully, but these errors were encountered:
jim
).page_1
and your name at the bottom of the file and save it.page_4
inside your chapter folder. The contents of the newpage_4
should be your favorite TV show.git status
to see what is modified from a previous version of history and what has not been tracked before.page_2
. List the files in the directory (ls -lah
) to ensure it was removed.git diff
to see the actual changes that were made.page_2
(running agit status
will give you a hint about how to do this).page_3
and commit it to your history..gitignore
file in the base directory of the project. Use the contents of the file to figure out a filename you could create to store your password, that git will not track (hint the*
character is a wildcard that matches any pattern).git status
to ensure no modifications have been recognized.page_3
that says the name of the file you just created where the real password is stored.page_3
to history and add a short message.upstream
that points to the initial repository ([email protected]:jimafisk/nber-git-training.git
). Git pull any upstream changes.origin
remote repo.upstream
repository (the jimafisk repo you initially forked).Fixes #<REPLACE WITH THIS ISSUE NUMBER>
.page_4
to their favorite TV show instead of yours (You will also review someone else's PR, so do the same for them). They can do this with an inline comment and finish the review by "requesting changes".origin
.page_4
now matches their own favorite TV show.The text was updated successfully, but these errors were encountered: