Skip to content

Commit

Permalink
spell check
Browse files Browse the repository at this point in the history
  • Loading branch information
LoreDirick committed Mar 20, 2019
1 parent 4033387 commit 7de92e0
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 84 deletions.
28 changes: 15 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# Getting Started with Git

## Introduction
As you now know, git is a version control system. The Learn platfrom at Flatiron school has a deep integration with Git and GitHub. GitHub is an online hosting platform for that uses git.
Learn has a deep integration with Git and GitHub. We need to teach you just enough git to interact with GitHub like a real developer. While you can run python notebooks on the learn platform itself, you'll also want to be able to download material to your lcoal computer so you can work on it there.
As you now know, git is a version control system. The Learn platform at Flatiron school has a deep integration with Git and GitHub. GitHub is an online hosting platform that uses git.
Learn has a deep integration with Git and GitHub. We need to teach you just enough git to interact with GitHub like a real developer. While you can run python notebooks on the Learn platform itself, you'll also want to be able to download material to your local computer so you can work on it there.

## Objectives:
## Objectives

You will be able to:

Expand All @@ -27,7 +27,7 @@ Forking is the process of making a personal copy of the Learn lab on GitHub. It'

![What's a Fork](http://ironboard-curriculum-content.s3.amazonaws.com/front-end/lab-assets/git-workflow-1.png)

Afterwards, we'll then use `git clone` from a bash shell like terminal or git bash in order to copy the material from the web to our local computer.
Afterward, we'll then use `git clone` from a bash shell like terminal or git bash in order to copy the material from the web to our local computer.

From there, git will allow us to continue to track and incorporate changes that we make to our work.

Expand All @@ -48,29 +48,28 @@ To start:
* Return to your web browser and navigate to the lesson you want to download.
* Click the github icon

<img src="Learn_Github_Logo.png">
<img src="images/learn_github_logo.png">


You'll be redirected to the associated github repository like this.
<img src="Github_Fork_Button.png">
<img src="images/github_fork_button.png">

* **Click the fork button**, as shown above in order to create a copy to your personal account which you can edit and update.




After a moment of this:
<img src="Github_Forking_In_Progress.png" width=350>

<img src="images/github_forking_in_progress.png" width="650">


You'll be redirected to your new personal copy of the repository:
<img src="Forked_Github_Page.png" width=700>

<img src="images/forked_github_page.png" width="850">

## `git clone`

Now that you have your own copy (by forking), we're going to download a copy to your local computer using git clone.

* Copy the url.
* Copy the URL.
* Mac: Press **cmd+L** to highlight the url bar and **cmd+c** to copy the url
* Windows: Press **Ctrl+L** to highlight the url bar and **Ctrl+c** to copy the url

Expand Down Expand Up @@ -101,6 +100,7 @@ Adding changes with the `git add` command is a way to stage any changes and get

A commit is a permanent moment in time in your git history. A commit creates a new version of your code. To commit, memorize this command. `git commit -am "Your commit message"`. You are using the `git commit` command with the flags `-am`, which tell git to commit all the changes and to include a commit message. You supply the commit message in `""` directly in the command, `"Your commit message".


## `git push`

Pushing is the process of taking your local code and commits and syncing them, or uploading them, to GitHub. You're updating the GitHub remote (remotes are just fancy names for copies of the repository), generally your fork, represented by a remote named `origin`, by pushing your code to the remote. The git command to do this is simply `git push`. When you `git push` from within a git repository, it will take all the commits that you have locally and push them to the online remote.
Expand All @@ -127,4 +127,6 @@ Pushing is the process of taking your local code and commits and syncing them, o

## Summary

In this lesson, we took an introductory look at git and github. First, we saw how to fork and clone repositories from learn ot your local machine. From there, we then further discussed how to add changes to git, commit them, and push them online.
In this lesson, we took an introductory look at git and github. First, we saw how to fork and clone repositories from Learn ot your local machine. From there, we then further discussed how to add changes to git, commit them, and push them online.


File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
101 changes: 30 additions & 71 deletions index.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"# Getting Started with Git\n",
"\n",
"## Introduction \n",
"As you now know, git is a version control system. The Learn platfrom at Flatiron school has a deep integration with Git and GitHub. GitHub is an online hosting platform for that uses git. \n",
"Learn has a deep integration with Git and GitHub. We need to teach you just enough git to interact with GitHub like a real developer. While you can run python notebooks on the learn platform itself, you'll also want to be able to download material to your lcoal computer so you can work on it there.\n",
"As you now know, git is a version control system. The Learn platform at Flatiron school has a deep integration with Git and GitHub. GitHub is an online hosting platform that uses git. \n",
"Learn has a deep integration with Git and GitHub. We need to teach you just enough git to interact with GitHub like a real developer. While you can run python notebooks on the Learn platform itself, you'll also want to be able to download material to your local computer so you can work on it there.\n",
"\n",
"## Objectives:\n",
"## Objectives\n",
"\n",
"You will be able to:\n",
"\n",
Expand All @@ -19,13 +19,9 @@
"* Use `git status` to see the status of your locally cloned git repository.\n",
"* Use `git add .` to add your local changes to be committed.\n",
"* Use `git commit -am \"Commit Message\"` to commit changes that have been added with a message.\n",
"* Use `git push` to upload your local changes to GitHub.\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"* Use `git push` to upload your local changes to GitHub.\n",
"\n",
"\n",
"## Some terminology and concepts\n",
"\n",
"As you can see from the objectives above, we're going to dive in and use several git commands in this lesson. \n",
Expand All @@ -36,21 +32,16 @@
"\n",
"![What's a Fork](http://ironboard-curriculum-content.s3.amazonaws.com/front-end/lab-assets/git-workflow-1.png)\n",
" \n",
"Afterwards, we'll then use `git clone` from a bash shell like terminal or git bash in order to copy the material from the web to our local computer.\n",
"Afterward, we'll then use `git clone` from a bash shell like terminal or git bash in order to copy the material from the web to our local computer.\n",
"\n",
"From there, git will allow us to continue to track and incorporate changes that we make to our work. \n",
"\n",
"`git status` allows us to see if we have made any changes.\n",
"\n",
"If we have made changes that we would like to save to our version control history, we can then use `git add` to add the changed files to the version history and `git commit` to finalize the process. As a final process, we can then use `git push` to push our changes to the web so that we or collaborators can access them from anywhere. \n",
"\n",
"Now that you have a brief overview of what we're about to dive into, let's go through the process step by step."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now that you have a brief overview of what we're about to dive into, let's go through the process step by step.\n",
"\n",
"## Open up a Bash Shell and Create a Course Folder / Subfolder\n",
"\n",
"To use git, we're going back to the bash shell (mac: terminal, windows: git bash) once again!\n",
Expand All @@ -62,53 +53,28 @@
"* Return to your web browser and navigate to the lesson you want to download.\n",
"* Click the github icon\n",
"\n",
"<img src=\"Learn_Github_Logo.png\">"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"<img src=\"images/learn_github_logo.png\">\n",
"\n",
"\n",
"You'll be redirected to the associated github repository like this. \n",
"<img src=\"Github_Fork_Button.png\">\n",
"<img src=\"images/github_fork_button.png\">\n",
"\n",
"* **Click the fork button**, as shown above in order to create a copy to your personal account which you can edit and update.\n",
"\n",
"* **Click the fork button**, as shown above in order to create a copy to your personal account which you can edit and update."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"After a moment of this:\n",
"<img src=\"Github_Forking_In_Progress.png\" width=350>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"<img src=\"images/github_forking_in_progress.png\" width=\"650\">\n",
"\n",
"\n",
"You'll be redirected to your new personal copy of the repository:\n",
"<img src=\"Forked_Github_Page.png\" width=700>"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"\n",
"<img src=\"images/forked_github_page.png\" width=\"850\">\n",
"\n",
"## `git clone`\n",
"\n",
"Now that you have your own copy (by forking), we're going to download a copy to your local computer using git clone.\n",
"\n",
"* Copy the url. \n",
"* Copy the URL. \n",
" * Mac: Press **cmd+L** to highlight the url bar and **cmd+c** to copy the url\n",
" * Windows: Press **Ctrl+L** to highlight the url bar and **Ctrl+c** to copy the url\n",
"\n",
Expand All @@ -121,13 +87,8 @@
"The repository and all of its contents will be downloaded locally to your computer!\n",
"\n",
"You should be able to see the new folder by listing the files in the current directory with `ls`. \n",
"You can then navigate into the git directory with `cd directory_name`."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"You can then navigate into the git directory with `cd directory_name`.\n",
"\n",
"Now that you have a local copy, we can further investigate some more git commands for version control. **Note that for these to work you must be in the git folder (the one we just cloned above). Make sure to navigate into the folder using the `cd` command.**\n",
"\n",
"## `git status`\n",
Expand All @@ -144,15 +105,12 @@
"\n",
"A commit is a permanent moment in time in your git history. A commit creates a new version of your code. To commit, memorize this command. `git commit -am \"Your commit message\"`. You are using the `git commit` command with the flags `-am`, which tell git to commit all the changes and to include a commit message. You supply the commit message in `\"\"` directly in the command, `\"Your commit message\".\n",
"\n",
"\n",
"## `git push`\n",
"\n",
"Pushing is the process of taking your local code and commits and syncing them, or uploading them, to GitHub. You're updating the GitHub remote (remotes are just fancy names for copies of the repository), generally your fork, represented by a remote named `origin`, by pushing your code to the remote. The git command to do this is simply `git push`. When you `git push` from within a git repository, it will take all the commits that you have locally and push them to the online remote.\n"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Pushing is the process of taking your local code and commits and syncing them, or uploading them, to GitHub. You're updating the GitHub remote (remotes are just fancy names for copies of the repository), generally your fork, represented by a remote named `origin`, by pushing your code to the remote. The git command to do this is simply `git push`. When you `git push` from within a git repository, it will take all the commits that you have locally and push them to the online remote.\n",
"\n",
"\n",
"## Additional Resources\n",
"\n",
"[GIT Cheatsheet](http://www.git-tower.com/blog/content/posts/54-git-cheat-sheet/git-cheat-sheet-large01.png)\n",
Expand All @@ -174,7 +132,8 @@
"\n",
"## Summary\n",
"\n",
"In this lesson, we took an introductory look at git and github. First, we saw how to fork and clone repositories from learn ot your local machine. From there, we then further discussed how to add changes to git, commit them, and push them online."
"In this lesson, we took an introductory look at git and github. First, we saw how to fork and clone repositories from Learn ot your local machine. From there, we then further discussed how to add changes to git, commit them, and push them online.\n",
"\n"
]
}
],
Expand All @@ -194,7 +153,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.5"
"version": "3.6.4"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 7de92e0

Please sign in to comment.