Media Computation Skills Lab

MTEC 1003

Lab 4 - Part 2 - Saving and Sending Changes to Your Repository

In this lab, you’ll be:

  1. creating and editing files in your local repository
  2. saving those changes
  3. sending those changes to your remote repository on github

Instructions

Creating and Saving Changes Locally, Sending to Remote Repository

In this part of the lab, you will create a text file in your local repository, and then you’ll send it to your remote repository.

git status
# On branch master
#
# Initial commit
#
nothing to commit (create/copy files and use "git add" to track)
nano README.markdown
This is lab 04
git status
pines:lab-04-version-control bree$ git status
# On branch master
#
# Initial commit
#
# Untracked files:
#   (use "git add <file>..." to include in what will be committed)
#
#	README.markdown
nothing added to commit but untracked files present (use "git add" to track)
git add --all
git status
# On branch master
#
# Initial commit
#
# Changes to be committed:
#   (use "git rm --cached <file>..." to unstage)
#
#	new file:   README.markdown
#
git commit -m "added a README file"
[master (root-commit) 7a2e2f6] added a README file
 1 file changed, 1 insertion(+)
 create mode 100644 README.markdown
git status
# On branch master
nothing to commit, working directory clean
git log --color
commit 7a2e2f6ff86407b7707f78cf8c9a12b1dd843de9
Author: bree <bzuckerman@citytech.cuny.edu>
Date:   Wed Feb 26 08:54:14 2014 -0500

    added a README file
git push origin master
Counting objects: 3, done.
Writing objects: 100% (3/3), 242 bytes | 0 bytes/s, done.
Total 3 (delta 0), reused 0 (delta 0)
To https://github.com/bzuckerman/lab-04-version-control.git
 * [new branch]      master -> master

Making Changes, Showing Changes, Showing History

In this part of the lab, you will make changes to an existing file.

This is lab 04
It's about version control
git diff --color

(Optional) Practice Making Changes / Adding Files

echo "hello"

MTEC 1003 - Media Computation Skills Lab - Spring 2015