Цель – создать git репозиторий на одной машине, и начать работать с кодом на другой машине
1. я решил работать через ssh (гит умеет это делать)
правим ~/.ssh/config :
Host git.eter
HostName git.etersoft.ru
User git_ЛОГИН
2. Создаем свой репозиторий. Т.е. идем в папку с нашим кодом и делаем git init
3. На другой машине, чтобы получить наш код делаем
git clone ssh://ваш_хост_или_айпишник//путь_к_папке_с_репозиторием
Собсно все
git - система контроля версий (многие из вас наверняка знакомы с svn =). По долгу службы мне
пришлось сталкнуться именно с git. Сюда я буду выкладывать вырезки с других сайтов. Для меня
это будет памяткой на начальной стадии, для Вас возможно тоже
# Получить Git репозиторий (впервые)
git clone \
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6.git
# Обновить Git репозиторий из определенного вышестоящего Git репозитория
git pull
# Выгрузить из Git репозитория в локально работающий репозиторий.
git checkout
# Добавить изменения в локальный Git репозиторий
git commit
# Внести изменения в вышестоящий (потребует SSH доступ к вышестоящему
git push
# Добавить новые файлы в локальный репозиторийires (commit)
git add <file>
# Показать изменения, сделанные в локально работающей дирктории
git diff
# Удалить файлы
git rm <file>
Читать дальше »
Дано – firefox 2 & firefox 3 установленные в разные дериктории (у меня C:/…/firefox & C:/…/firefox3).
1. Создаем новый профайл. Для этого, делаем /path/to/firefox -profilemanager -no-remote (я использовал папку обычного, ff2)
2. В появившемся окне создаем новый профиль. Имя – любое, для удобства – без пробелов. Сохраняем, закрываем окно.
Далее, возможны вариации, но я делал так –
- запускаем ff2
- идем в дериктория с ff3 и запускаем firefox -P имя_созданного_выше_профиля -no-remote &
Никак не получалось установить гем mysql ля. Выскакивала ошибка
Building native extensions. This could take a while…
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
Полный лог был таков -
gem install mysql
Select which gem to install for your platform (x86_64-linux)
1. mysql 2.7.3 (mswin32)
2. mysql 2.7.1 (mswin32)
3. mysql 2.7 (ruby)
4. mysql 2.6 (ruby)
5. Skip this gem
6. Cancel installation
> 4
Building native extensions. This could take a while…
ERROR: While executing gem … (Gem::Installer::ExtensionBuildError)
ERROR: Failed to build gem native extension.
ruby extconf.rb install mysql
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lm… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lz… yes
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lsocket… no
checking for mysql_query() in -lmysqlclient… no
checking for main() in -lnsl… yes
checking for mysql_query() in -lmysqlclient… no
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
–with-opt-dir
–without-opt-dir
–with-opt-include
–without-opt-include=${opt-dir}/include
–with-opt-lib
–without-opt-lib=${opt-dir}/lib
–with-make-prog
–without-make-prog
–srcdir=.
–curdir
–ruby=/usr/bin/ruby
–with-mysql-config
–without-mysql-config
–with-mysql-dir
–without-mysql-dir
–with-mysql-include
–without-mysql-include=${mysql-dir}/include
–with-mysql-lib
–without-mysql-lib=${mysql-dir}/lib
–with-mysqlclientlib
–without-mysqlclientlib
–with-mlib
–without-mlib
–with-mysqlclientlib
–without-mysqlclientlib
–with-zlib
–without-zlib
–with-mysqlclientlib
–without-mysqlclientlib
–with-socketlib
–without-socketlib
–with-mysqlclientlib
–without-mysqlclientlib
–with-nsllib
–without-nsllib
–with-mysqlclientlib
–without-mysqlclientlib
Gem files will remain installed in /usr/lib64/ruby/gems/1.8/gems/mysql-2.6 for inspection.
Results logged to /usr/lib64/ruby/gems/1.8/gems/mysql-2.6/gem_make.out
Читать дальше »
Фухх.. Вроде более менее вот настроился. Конфиги апача меня достали, постоянно они меняют их формат (отличия в 1.3, 2.0, 2.2 как минимум).
Зато теперь мы работаем на AMD 64 2500+, 512 оперативы и 250 Гб винт
По сравнению с прошлым старечком П3 500, мы просто круты