You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
2.4 KiB
70 lines
2.4 KiB

|
|
|
|
# WDI-PANTHALASSA
|
|
|
|
---
|
|
Title: Github Practice<br>
|
|
Type: Homework<br>
|
|
Duration: "0:30 - 1:00" <br>
|
|
Creator:
|
|
Kristyn Bryan <br>
|
|
Course: WDIr Panthalassa<br>
|
|
Competencies: Github, command line git commands<br>
|
|
Prerequisites: Github
|
|
|
|
---
|
|
|
|
### Directions
|
|
Click on this link <https://try.github.io> and complete all of the steps in the tutorial. Answer the questions below in this markdown file and commit your work at each point when directed.
|
|
|
|
1. What command do you use to setup a git repository inside of your folder?
|
|
<br>
|
|
**Answer:**
|
|
1. What command do you use to ask git to start tacking a file?
|
|
<br>
|
|
**Answer:**
|
|
1. What command do you use to ask git to move your file from the staging area to the repository?<br>
|
|
**Answer:**
|
|
<hr>
|
|
** Commit your work.** <br>
|
|
The commit message should read: <br>
|
|
"The 1st set of homework answers are complete".
|
|
<hr>
|
|
1. What command do you use to pull any changes from the master repository into your local repository?<br>
|
|
**Answer:**
|
|
1. What command do you use to unstage a file?<br>
|
|
**Answer:**
|
|
1. What command do you use to change your files back to how they were after a commit?<br>
|
|
**Answer:**
|
|
1. Why is it important to use `--` when chaging files back to a previous state?<br>
|
|
**Answer:**
|
|
1. Why might you want to reset your files back to a previous commit?<br>
|
|
**Answer:**
|
|
<hr>
|
|
** Commit your work.** <br>
|
|
The commit message should read: <br>
|
|
"The 2nd set of homework answers are complete".
|
|
<hr>
|
|
1. What command do you use to create a branch?<br>
|
|
**Answer:**
|
|
1. What command do you use to use a different branch?<br>
|
|
**Answer:**
|
|
1. Why would you want to use a branch other than the default `master`?<br>
|
|
**Answer:**
|
|
<hr>
|
|
** Commit your work.** <br>
|
|
The commit message should read: <br>
|
|
"The 3rd set of homework answers are complete".
|
|
<hr>
|
|
1. Give an example for when you would use `git merge` and give an example for when it would be better to submit a pull request to have your branch merged<br>
|
|
**Answer:**
|
|
1. What command do you use to send all of the work that you've done locally to your remote repository?<br>
|
|
**Answer:**
|
|
<hr>
|
|
** Commit your work.** <br>
|
|
The commit message should read: <br>
|
|
"The 4th set of homework answers are complete".
|
|
<hr>
|
|
### Want more git practice?
|
|
Check out this [tutorial](http://gitreal.codeschool.com/?utm_source=github&utm_medium=codeschool_option&utm_campaign=trygit) that includes videos about using git and some challenges for you to tackle.
|