Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ae5521d

Browse files
Kimberley CookKimberley Cook
Kimberley Cook
authored and
Kimberley Cook
committed
few amends to the verison control tutorial 1
1 parent d456a4a commit ae5521d

File tree

1 file changed

+37
-25
lines changed

1 file changed

+37
-25
lines changed

β€Žversion-control/introduction/tutorial.mdβ€Ž

Lines changed: 37 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,29 @@
11
---
22
layout: page
3-
title: Introduction to Version Control and git
3+
title: Version Control and Git
44
---
55

6-
## What is Version Control?
6+
## Introduction to Version Control and Git
7+
8+
###Objectives
9+
10+
In this tutorial we are going to look what:
11+
12+
* What is Version Control?
13+
* Why you need it?
14+
* Setting up a repository
15+
* Commiting to a repository
16+
17+
###Goal
718

8-
Version control is a way that you can manage and track any changes you make to your files.
19+
Today we will set up an account on Github (if you do not have one yet) and set up a new project and commit a file to that project.
920

21+
## What is Version Control?
22+
23+
Version control is a way of recording all changes to a file or set of files over a period of time.
1024

11-
### Google docs revision history
12-
Google docs, for example, keeps a revision history of any document you create and modify.
25+
### Google Docs revision history
26+
Google Docs, for example, keeps a revision history of any document you create and modify.
1327

1428
Have a look [at this Google document](https://docs.google.com/document/d/10kHJKXHLa-V8G6vVQoDiS6cTPvJoXnj_-SDvfQdziFk/edit?usp=sharing).
1529

@@ -31,32 +45,31 @@ Wikipedia also holds a history of all changes.
3145
![](images/wikipedia-view-history.png)
3246

3347
- Try and have a look at the first revision of the page, by going back. It's dated back to 2005!
48+
3449
- Click **curr**, that will show you the [differences between the first and the latest entry](http://en.wikipedia.org/w/index.php?title=Women_in_computing&diff=583521812&oldid=19298328)
3550

3651
![](images/wikipedia-diff.png)
3752

3853
## Why do you need Version Control?
3954

40-
- When used on a regular basis, version control helps you to store your files safely. It makes it easy to figure out what broke your code as you can roll back to a previous version and work out when things last worked as expected.
55+
- When used on a regular basis, version control helps you to store your files safely. It makes it easy to figure out what has broken your code as you can roll back to previous versions and work out when things last worked as expected.
4156

42-
- It is also helpful when working with other people as it combines all the changes together, and tracks who, why and when it changed.
57+
- It is also helpful when working with other people as it combines all the changes, and tracks who made the change, when it changed and what files changed.
4358

4459
## Code version control systems
4560

46-
There are a number of different version control systems. The most popular ones are **svn** (or Subversion), **cvs**, **mercurial** and **git**.
61+
There are a number of different version control systems. The most popular ones are **SVN** (or Subversion), **CVS**, **Mercurial** and **Git**.
4762

48-
We will be using **git**.
63+
We will be using **Git**.
4964

5065
### Why Git?
51-
There are a number of reasons we chose git. To name some
66+
There are a number of reasons why we will be using Git. To name a few:
5267

53-
- A lot of learning resources
68+
- There are a lot of learning resources online
5469

55-
- Does not require you to be connected to the internet to use
70+
- It allows more than one person to safely work on the same project without interfering with each other
5671

57-
- All your tracked changes stay on your machine until you are happy with them, and want to make them part of your codebase
58-
59-
- Will tell you if someone has made changes since you last pushed code and urge you to update first and resolve issues
72+
- It will tell you if someone has made changes since you last pushed code and urge you to update first then resolve any possible issues
6073

6174
- Github and online collaboration. Open source code is a big part of today's life. By being able to retrieve and help existing projects, you can also contribute to them
6275

@@ -83,20 +96,19 @@ Some popular project using git:
8396
- commit: Applying any changes you have made to the **repository**
8497

8598
#### Aim for small and focused changes
86-
When using version control, you should commit every time you do a small piece of work, rather than working for hours in a row, changing too many things and then committing them.
99+
When using version control, you should commit every time you do a small piece of work, rather than working for hours on many different amends.
87100

88-
For example, if you want to change the position of an element, the color of all the links on your page and the font size dimensions of all paragraphs, you should do three commits, using messages that describe what you are doing each time.
101+
For example, if you want to change the position of an element, the color of all the links on your page and the font size of all paragraphs. You should do three commits, using messages that describe what you have done each time.
89102

90103
###Bad commit messages
91104

92105
Every time you commit a change use a message that describes your change clearly. In a few months time you will have difficulty remembering why you applied a change if your messages say _changing some CSS_, _another commit_, or _more changes_
93106

94-
Try using messages like _repositioned image to look better on page_, _resolved positioning issue for Firefox_.
95-
107+
Try using messages like _repositioned image to look better on page_ or _resolved positioning issue for Firefox_.
96108

97109
# The next step!
98110

99-
Sign up to [github](http://github.com/)
111+
Create an account on [github](http://github.com/)
100112

101113
Download [Github for Windows](http://windows.github.com/) or [Github for Mac](http://mac.github.com/)
102114

@@ -108,16 +120,16 @@ Now that you have the Github client setup on your machine, we will spend sometim
108120

109121
![](images/create_new_repository.png)
110122

111-
2. Create a README.md file in the directory you created the repository and write
123+
2. Create a README.md file in the directory of the repository and write
112124

113-
_This is where I store the work I have done at Codebar_
125+
_This is where I store the work I have done at codebar_
114126

115127
3. Go to the Github client and commit that file
116128
![](images/commit.png)
117129

118130
4. Now, create a new branch called **gh-pages**
119131

120-
5. In the directory, create a subdirectory **lesson1** and move the **html** file you created at the first sessionand all the other relevant files and directories (e.g. /images)
132+
5. In the directory, create a subdirectory **lesson1** and move the **html** file you created in the first session and all the other relevant files and directories (e.g. /images)
121133

122134
6. Now, link the file from the root of your project by creating an `index.html` and adding a link to the page
123135

@@ -136,11 +148,11 @@ Now that you have the Github client setup on your machine, we will spend sometim
136148

137149
To access your work, go to `http://<username>.github.io/codebar`
138150

139-
10. Repeat the process to list the rest of the tutorials you have worked on on the page as well.
151+
10. Repeat the process to list the rest of the tutorials you have worked on too.
140152

141153
## Bonus
142154
This is your personal page. Use what we learned in the previous lessons to style it, and make it look pretty, and what we learned today to commit and publish your changes.
143155

144156
-----
145157

146-
This ends our _Introduction to Version Control and git_ lesson. Is there something you don't understand? Try and go through the provided resources with your coach. If you have any feedback, or can think of ways to improve this tutorial [send us an email](mailto:feedback@codebar.io) and let us know.
158+
This ends our _Introduction to Version Control and Git_ lesson. Is there something you don't understand? Try and go through the provided resources with your coach. If you have any feedback, or can think of ways to improve this tutorial [send us an email](mailto:feedback@codebar.io) and let us know.

0 commit comments

Comments
(0)

AltStyle γ«γ‚ˆγ£γ¦ε€‰ζ›γ•γ‚ŒγŸγƒšγƒΌγ‚Έ (->γ‚ͺγƒͺγ‚ΈγƒŠγƒ«) /