GITMAGIC » История » Версия 2
« Предыдущее -
Версия 2/4
(Разница(diff)) -
Следующее » -
Текущая версия
Dmitry Chernyak, 19.10.2012 16:36
GITMAGIC¶
This is the brief Git info
INTRODUCTION¶
Git (http://git-scm.com) is the widely used source code management system.
Git is used to hold and maintain SCI-CD project.
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
SUBMITTING PATCHES¶
MORE¶
For more information - read Git manuals.