Skip to content
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

Update 02_GitKraken.md #5

Open
wants to merge 2 commits into
base: rkhetani-patch-1
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 2 additions & 10 deletions 02_GitKraken.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@ Tracking items in a folder (repository) using Git:

Download the folder we have generated for this session [from here](../../raw/master/data/example_files.zip), and unzip it in a location of your choosing. It's usually easiest to place it on the desktop to retrieve it later more conveniently.




### Creating a Folder/Repository, Starting from your Local Machine

There are a number of different ways to add files/folders for GitKraken to track. For this lesson, click on the folder icon at the top left corner. This will allow you to either *Open* an existing repository, or *Clone* a repository that you or someone else has created, or *Init* (initialize/create) a new repository. Today, we will be initializing a repository.
Expand Down Expand Up @@ -120,7 +117,6 @@ You do have the option of adding only certain files to the Staging area if you w

To commit changes you must give a summary of the changes, include an optional message, and click on the Commit button:


<img src="img/2.new-local_change.png" width="700" align="center">

After the commit, the timeline changes to reflect the current state & history of our repository. Clicking on the top line, our recent commit, shows in the bottom pane the changes that were include, which is the addition (green plus square) of these files:
Expand All @@ -147,11 +143,9 @@ We're going to make several sets of changes that reflect the flexibility and cap
Let's open the `README.md` document using our favorite text editor (see note below about text editors) and make this more useful. GitHub automatically renders Markdown document into readable HTML pages that are displayed at the bottom of the main page of your repo. Let's turn this into something more meaningful by added some boilerplate text and helpful information to the small amount of text already there:

```

## Overview
Our code will demonstrate the different code snippets that have been used for programming
classes. We
will have this written in both R and Python.
classes. We will have this written in both R and Python.

## Installation
The full suite of code will require the Tmisc and dplyr R packages;
Expand All @@ -170,7 +164,6 @@ Contributions and references are included in the source code files.

## Licensing
This is all available as CC BY 4.0 license. Enjoy!

```

Save the changes to your file.
Expand Down Expand Up @@ -217,7 +210,6 @@ for (trials in 1:3000) {


# END

```

Save this file as well, and go back to GitKraken. Again, the program creates a new WIP timeline entry as it has detected changes. Click on this WIP line to show that GitKraken has noticed that our files have changed, and click on the README.md (file icon with an elipsis inside):
Expand Down Expand Up @@ -315,7 +307,7 @@ When we return to GitKraken, it has noticed the two changes. Since the change in

**Exercise #1**

1. Create a repository "learning_github" in GitKraken. Make sure to create it both locally, and remotely on github.com.
1. Create a repository "learning_github" in GitKraken. Make sure to create it both locally, and remotely on github.com (via `init`).
2. Find the folder on your local computer, and add a couple of small text files to it from your computer.
3. Create a new plain text file called "data-file.txt", add a line or 2 of content to it and save it to the "learning_github" folder.
4. Go to GitKraken, and commit the change with an approriate message.
Expand Down