| 1 |
* |
| 2 |
Git |
| 3 |
^ source for downloading: "https://git-scm.com/" |
| 4 |
^ it's a system of control of versions |
| 5 |
^ this programme saves control points |
| 6 |
^ pluses: |
| 7 |
a) you can always return to old versions (one or more months ago) |
| 8 |
b) economies of memory |
| 9 |
c) with a created repository can work lots of people, not only you |
| 10 |
^ to pass this course: "https://githowto.com/ru" |
| 11 |
^ to learn documentation "https://git-scm.com/book/ru/v2" |
| 12 |
^ two methods of using Gita after installing: |
| 13 |
a) pkm in necessary folder > Git GUI here |
| 14 |
` method isn't comfortable |
| 15 |
b) using via terminal |
| 16 |
` shift+pkm in necessary folder > open window Power Shell here |
| 17 |
' if it's not the signature here, seek throuw button windows |
| 18 |
` in Visual Studio Code "ctrl + `" |
| 19 |
^ commands of GIT |
| 20 |
a) git init |
| 21 |
` for initialisation of repository in the same folder (i got on the higher level) |
| 22 |
` we can see it only like hidden folder (.git) |
| 23 |
b) |
| 24 |
git config --global/--local user.name "Alexander" |
| 25 |
git config --global/--local user.email alexander.phrolov86@mail.ru |
| 26 |
`--local for restricted settings where |
| 27 |
`made via local, couldn't with --global |
| 28 |
`we can see created tasks in .git > config |
| 29 |
c) three states of creating files in Git |
| 30 |
`the first is when files just are created |
| 31 |
`the second is when Git traks files |
| 32 |
`the third is when Git created a control point (commit) |
| 33 |
d) git status |
| 34 |
`see information about states of Git |
| 35 |
`usually we can only see the first state |
| 36 |
`if we see "modified: index.html" (i.e.), we changed sth in index.html |
| 37 |
e) git add -A |
| 38 |
`create the second state (tracking) |
| 39 |
`-A ~ all |
| 40 |
`when we type command, it must be highlighted needed folder in Explorer (ctrl + shift + E) |
| 41 |
`we can make so "git add *.css" or "git add main.css", where * all files with .css, main.css treats only to it file |
| 42 |
f) git commit -a -m"description of the third state" |
| 43 |
`-a ~ all (don't know in tracking capitalize, in commit lowercase) |
| 44 |
`-m ~ message |
| 45 |
g) git restore index.html (addressing only to index.html) |
| 46 |
`if we changed sth in inde.html, we return back to previous control point |
| 47 |
h) git log |
| 48 |
`after this command we'll see all made commits |
| 49 |
`we can see personal data |
| 50 |
`when commits were created |
| 51 |
`names' commits |
| 52 |
`go into details |
| 53 |
* |
| 54 |
GitHub |
| 55 |
^ it's a service for keeping remoted repositories |
| 56 |
^ link for keeping repositories in GitHub"https://github.com/" |
| 57 |
^ we must register ourselves there |
| 58 |
^ we need to learn documentation there |
| 59 |
^ three methods to upload reposiroties from PC to GitHub |
| 60 |
a) not difficult |
| 61 |
^ after adding one repository we can add easily repository, just git push (because of -u) |
Комментарии