Skip to content

kathrynlg/exercise-git

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

##What's ...? What is git? & What is github?

Learn Git

Tutorial: Try Git

Github

Create a Repository

Cloning, Forking, Commiting & Updating #Exercise Fork this repository and download the repository to your computer ##Questionnaire The next questionnaire could be answer within the readme file on your computer or within github repository. If you decide to do it in your computer, just edit the readme.md file with each answer then add changes, commit then and finally push the changes to your github repository. If you decide to change it within github, you just need to click on the readme.md file, click the edit icon and start answering the questions.

  1. What is Git?
  2. What is Github?
  3. Describe the commands that were used on Try Git tutorial (Use a table).
  4. What are the main advantages?

###Answers

1 What is Git?

    git is a means to archive the work so you are able to view the changes and a means to go back and review how it changed.

2 What is Github?

    github is a website that allows you to keep Repos on a remote location.

3 Describe the command that were used on Try Git tutorial.



git add . adds information into the que
git status checks to see if information has been added into the repo
git push pushes the changes to a remote location
git remote allows you to set a remote location
git commit allows you to set a comment to a change that happens
git branch lets you branch into a copy of a set of files so you don't mess the originals.
git merge allows you to merge the changes from a branch into the originals

4 What are the main advantages?

    the advantages is that it allows you to compare different versions of the files, merge files, and allow multiple people to work on files without issue.

##Exercise

Work on the gitTutorial folder, in order to simulate everything that was done within the Try Git Tutorial. The tutorial allow you to use some git commands but is skipping the creation and editing of the files, so you are going to create/edit/delete the files following the tutorial steps using git add [files] and git commit -m "PLACE COMMIT NAME HERE" in order to have a reference within the project per change.

###For example:

####Edit octocat.txt file

  1. Open octocat.txt file then create a change within the file, could be just add or erase a letter/paragraph ...
  2. Add changes to stage area git add octocat.txt
  3. Commit changes to the project git commit -m "Octocat cat File edited"

#Useful Links

Github Markdown readme file references

Mac terminal Commands

About

Introduction to Git

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published