Професійна робота з GitAnother translations: into Russian. | Participants
|
- Settings of this translation
- Statistics
- Participants
- Translate into Ukrainian
- Translation result
- 2% translated in draft.
If you do not want to register an account, you can sign in with OpenID.
Pro Git | ||
# Getting Started # | ||
This chapter will be about getting started with Git. We will begin at the beginning by explaining some background on version control tools, then move on to how to get Git running on your system and finally how to get it setup to start working with. At the end of this chapter you should understand why Git is around, why you should use it and you should be all setup to do so. | Цей розділ присвячений знайомству з Git. Ми почнемо з пояснення принципів роботи систем контролю версій, потім перейдемо до того, як підняти Git на вашій системі та нарешті як почати з ним працювати. В кінці розділу ви вже повинні розуміти, навіщо Git існує, чому ви повинні його використовувати та чому ви повинні виконати всі інсталяційні роботи. | |
## About Version Control ## | ||
What is version control, and why should you care? Version control is a system that records changes to a file or set of files over time so that you can recall specific versions later. For the examples in this book you will use software source code as the files being version controlled, though in reality you can do this with nearly any type of file on a computer. | Що таке контроль версій, і навіщо це вам потрібно? Контроль версій - це система, яка записує всі зміни до файлу чи до групи файлів з часом, так що ви можете відновити будь яку версію. Приклади в цій книзі наводяться у вигляді файлів, що містять програмний код, та знаходяться у системі контролю версій, хоча контроль версій може бути застосований до будь-якого файлу на вашому комп’ютері. | |
If you are a graphic or web designer and want to keep every version of an image or layout (which you would most certainly want to), a Version Control System (VCS) is a very wise thing to use. It allows you to revert files back to a previous state, revert the entire project back to a previous state, compare changes over time, see who last modified something that might be causing a problem, who introduced an issue and when, and more. Using a VCS also generally means that if you screw things up or lose files, you can easily recover. In addition, you get all this for very little overhead. | Якщо ви є графічним чи веб дизайнером та бажаєте зберігати кожну версію зображення чи схеми (а певно що насправді ви цього хочете), Система Контролю Версій (СКВ) - це дуже розумна річ для цього. Вона дозволить вам повертати файли до попереднього стану, порівнювати зміни в часі, дивитися хто останній модифікував щось, що можливо спричинило проблеми, хто призвів до проблеми, і багато іншого. Використання СКВ також означає що якщо ви прикрутите якусь штуку, або втратите файли, ви можете легко відновитися. На додачу, ви матимете все це лише за дуже невеличку "переплату" | |
### Local Version Control Systems ### | ||
Many people’s version-control method of choice is to copy files into another directory (perhaps a time-stamped directory, if they’re clever). This approach is very common because it is so simple, but it is also incredibly error prone. It is easy to forget which directory you’re in and accidentally write to the wrong file or copy over files you don’t mean to. | Багато людей обирає методом контролю версій копіювання файлів в іншу директорію (можливо таку директорію, що містить часову мітку, якщо вони досить розумні). Цей підхід дуже поширений, оскільки він простий, проте він також надзвичайно схильний до помилок. Дуже легко забути, в якій директорії ви зараз є та випадково записати до некоректного файлу або скопіювати поверх файлів, чого ви не хотіли. | |
To deal with this issue, programmers long ago developed local VCSs that had a simple database that kept all the changes to files under revision control (see Figure 1-1). | Для того, щоби подолати ці проблеми, програмісти досить давно придумали локальні СКВ які були простими базами даних, що зберігали всі зміни у файлах, що знаходилися під контролем ревізій (дивіться Малюнок 1-1). | |
Insert 18333fig0101.png | ||
Figure 1-1. Local version control diagram |
License: Creative Commons Attribution-Non Commercial-Share Alike 3.0 license
