GITMAGIC » История » Версия 2
Версия 1 (Dmitry Chernyak, 26.02.2011 22:14) → Версия 2/4 (Dmitry Chernyak, 19.10.2012 16:36)
h1. GITMAGIC
{{toc}}
This is the brief Git info
h2. INTRODUCTION
Git (http://git-scm.com) is the widely used source code management system.
Git is used to hold and maintain SCI-CD project.
h2. USEFUL COMMANDS
@git branch@ - show available branches, marks current with '*'
@git status@ - show your uncommited changes
@git diff@ - show differences from the last state
@git diff BRANCH@ - show differences against BRANCH
@git commit (-a|FILE)@ - remember your changes in the current branch, you'll
have to write a short note
@git log@ - show the log of the commits; the revision number is the first few
letters from the commit hash
@git reset --hard@ - forgot all changes in all files
@git checkout -b BRANCH@ - create new branch BRANCH and switch to it
@git checkout BRANCH@ - switch to the branch BRANCH
@git checkout master; git pull@ - receive updates from the project
@git checkout local; git merge master@ - merge pulled updates into your
workspace
h2. SUBMITTING PATCHES
h2. MORE
For more information - read Git manuals.
{{toc}}
This is the brief Git info
h2. INTRODUCTION
Git (http://git-scm.com) is the widely used source code management system.
Git is used to hold and maintain SCI-CD project.
h2. USEFUL COMMANDS
@git branch@ - show available branches, marks current with '*'
@git status@ - show your uncommited changes
@git diff@ - show differences from the last state
@git diff BRANCH@ - show differences against BRANCH
@git commit (-a|FILE)@ - remember your changes in the current branch, you'll
have to write a short note
@git log@ - show the log of the commits; the revision number is the first few
letters from the commit hash
@git reset --hard@ - forgot all changes in all files
@git checkout -b BRANCH@ - create new branch BRANCH and switch to it
@git checkout BRANCH@ - switch to the branch BRANCH
@git checkout master; git pull@ - receive updates from the project
@git checkout local; git merge master@ - merge pulled updates into your
workspace
h2. SUBMITTING PATCHES
h2. MORE
For more information - read Git manuals.