Данный доклад познакомит Вас с системой управления версиями файлов Git, которой пользуется Drupal-сообщество. Эта система может значительно упростить жизнь команды разработчиков, а также обезопасить Вас от потери файлов. В доклад также входит описание систем управления версиями в целом.
Видео доклада:
http://www.youtube.com/watch?v=3urk3xf79SM
9. Git. Приемы работы.
git init
git clone
git add <file> (add file to index, staging area)
dmitry@dmitry-laptop:~/gitpresentation/repo1$ git status
# On branch master
# Changed but not updated:
# (use "git add <file>..." to update what will be committed)
# (use "git checkout -- <filea>..." to discard changes in working directory)
#
# modified: test.txt
#
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# README
no changes added to commit (use "git add" and/or "git commit -a")
14. git bisect start
git bisect bad
git bisect good [commit]
$ git bisect start
$ git bisect bad
$ git bisect good v1.0
Bisecting: 6 revisions left to test after this
[ecb6e1bc347ccecc5f9350d878ce677feb13d3b2] error handling
on repo
18. git stash (git stash apply)
$ git stash list
stash@{0}: WIP on master: 049d078 added the index file
stash@{1}: WIP on master: c264051... Revert "added file_size"
stash@{2}: WIP on master: 21d80a5... added number to log
22. Полезные ссылки.
доклад Линуса Торвальдса о Git на Google
Talks: http://www.youtube.com/watch?
v=4XpnKHJAok8
http://proft.me/2010/10/17/spravochnik-po-git-i-
mercurial/
http://drupal.org/node/783086
http://githowto.com/
http://progit.org/book/ru/