- Explain what a version control system is.
- Explain why a version control system is important.
- Explain what Git is.
- Initialize a Git repository.
- Add and commit changes to a Git repository.
- Explain what GitHub is.
- Push commits from a local repository to a remote repository.
Turn to your neighbor and explain what a version control system is. Be prepared to share your discussing with the class.
Turn to your neighbor and explain why a version control system is important. Be prepared to share your discussion with the class.
Turn to your neighbor and explain what Git is.
Write down the command to initialize a git repository. Be prepared to share with the class
- Write down the command to add changes to staging. Be prepared share your answer with the class
- Write down the command commit (create a new revision) your changes. Be prepared to share your answer with the class.
Turn your neighbor and expalin what Github is. Be prepared to share with the class.
- In github.com, create a new repository, make sure you initialize it with a readme.
- Clone your new repository to your computer
- Open the folder that you cloned in atom.
- Change the contents of the readme file. It does not matter what you changes, as long as it is different.
- Add your changes to the staging area.
- Commit your changes to a new revision
- Push your changes to github.com
- In github.com, go look at the file you change in your repository. Make sure that you click on the README.md file.
- Click the
commits
link at the top of the text area, what do you see?
- In your computer, create a new folder named
superProject
- Change directories into your new folder
- Initialize a new git repository.
- Create a new file named README.md
- Insert some text into README.md
- Add your changes to the staging area
- Commit your changes to a new revision
- Go to github.com
- Create a new repository name
superProject
, make sure that you do not initialize it with a README.md - After creating an empty repository, you'll get directions on how to associate your repository on your computer to the github repository. It will look as follows (Note: This is what I got, your text will be different):
git remote add origin https://github.com/rogerwschmidt/superProject.git
git push -u origin master
The first command adds a remote (In this case, github) to the local repository.
The second command associates my local master
branch, with the remotes' master
branch
- Run both commands in your terminal. Make sure that you run the commands from the folder in which your git repository was initialized.
- Go back to Github.com to see your changes.
With your neigbor, investigate how to delete a repository from github.
With your neighbor, investigate how to delete a repository from your local machine.