GITMAGIC » История » Версия 1
Dmitry Chernyak, 26.02.2011 22:14
1 | 1 | Dmitry Chernyak | h1. GITMAGIC |
---|---|---|---|
2 | 1 | Dmitry Chernyak | |
3 | 1 | Dmitry Chernyak | {{toc}} |
4 | 1 | Dmitry Chernyak | |
5 | 1 | Dmitry Chernyak | This is the brief Git info |
6 | 1 | Dmitry Chernyak | |
7 | 1 | Dmitry Chernyak | h2. INTRODUCTION |
8 | 1 | Dmitry Chernyak | |
9 | 1 | Dmitry Chernyak | Git (http://git-scm.com) is the widely used source code management system. |
10 | 1 | Dmitry Chernyak | Git is used to hold and maintain SCI-CD project. |
11 | 1 | Dmitry Chernyak | |
12 | 1 | Dmitry Chernyak | h2. USEFUL COMMANDS |
13 | 1 | Dmitry Chernyak | |
14 | 1 | Dmitry Chernyak | @git branch@ - show available branches, marks current with '*' |
15 | 1 | Dmitry Chernyak | |
16 | 1 | Dmitry Chernyak | @git status@ - show your uncommited changes |
17 | 1 | Dmitry Chernyak | |
18 | 1 | Dmitry Chernyak | @git diff@ - show differences from the last state |
19 | 1 | Dmitry Chernyak | |
20 | 1 | Dmitry Chernyak | @git diff BRANCH@ - show differences against BRANCH |
21 | 1 | Dmitry Chernyak | |
22 | 1 | Dmitry Chernyak | @git commit (-a|FILE)@ - remember your changes in the current branch, you'll |
23 | 1 | Dmitry Chernyak | have to write a short note |
24 | 1 | Dmitry Chernyak | |
25 | 1 | Dmitry Chernyak | @git log@ - show the log of the commits; the revision number is the first few |
26 | 1 | Dmitry Chernyak | letters from the commit hash |
27 | 1 | Dmitry Chernyak | |
28 | 1 | Dmitry Chernyak | @git reset --hard@ - forgot all changes in all files |
29 | 1 | Dmitry Chernyak | |
30 | 1 | Dmitry Chernyak | @git checkout BRANCH@ - switch to the branch BRANCH |
31 | 1 | Dmitry Chernyak | |
32 | 1 | Dmitry Chernyak | @git checkout master; git pull@ - receive updates from the project |
33 | 1 | Dmitry Chernyak | |
34 | 1 | Dmitry Chernyak | @git checkout local; git merge master@ - merge pulled updates into your |
35 | 1 | Dmitry Chernyak | workspace |
36 | 1 | Dmitry Chernyak | |
37 | 1 | Dmitry Chernyak | h2. SUBMITTING PATCHES |
38 | 1 | Dmitry Chernyak | |
39 | 1 | Dmitry Chernyak | h2. MORE |
40 | 1 | Dmitry Chernyak | |
41 | 1 | Dmitry Chernyak | For more information - read Git manuals. |