Firefox Multi-Account Containers
Полезное расширение, если есть несколько учетных записей на Github и т.п.
Полезное расширение, если есть несколько учетных записей на Github и т.п.
В 1997 году я случайно в терминале FreeBSD набрал "ci" вместо "vi" и... это стало любовью на всю жизнь.
А вы как познакомились со своей первой системой контроля версий?
Что интересно, я до сих пор использую rcs, когда нужно всего пару файликов в каталоге поместить под контроль версий. hg или git в этом случае overkill.
Есть git-репозиторий в Интернете и два его клона: первый на работе, второй дома. Workflow такой: поработал на работе, commit, push. Пришел домой, pull, поработал, commit, push.
Внимание вопрос. Когда я снова прихожу на работу и делаю pull, какого черта мне предлагается оформить этот pull как commit и ввести log message? В результате весь лог засорен этими бессмысленными коммитами с сообщениями "Merge branch 'master' of ssh..."
Вот Mercurial ведь так не делает! Когда я делаю pull на работе, он понимает, что отправленные из дома changesets уже есть в репозитории, не надо их описывать дважды! Надо просто тихо синхронизировать немного отставший локальный репозиторий с удаленным.
Может я чего-то не понимаю или ключик какой надо гиту указать?
remote: error: refusing to update checked out branch: refs/heads/master remote: error: By default, updating the current branch in a non-bare repository remote: is denied, because it will make the index and work tree inconsistent remote: with what you pushed, and will require 'git reset --hard' to match remote: the work tree to HEAD. remote: remote: You can set the 'receive.denyCurrentBranch' configuration variable remote: to 'ignore' or 'warn' in the remote repository to allow pushing into remote: its current branch; however, this is not recommended unless you remote: arranged to update its work tree to match what you pushed in some remote: other way. remote: remote: To squelch this message and still keep the default behaviour, set remote: 'receive.denyCurrentBranch' configuration variable to 'refuse'.
No promises, but you could give this a try: https://hg.sr.ht/~sfink/cmdconvert Clone it to somewhere like ~/lib/hg. Add [extensions] cmdconvert = ~/lib/hg/cmdconvert to your ~/.hgrc (or hgrc.ini or whatever it is on Windows.) Then try running hg convert --command 'iconv -f KOI8-R -t UTF-8' your_repo new_repo Odds of it working on the first try are somewhat low (I don't really know what I'm doing.) If you want to restrict by file extension, do something like hg convert --ext .txt --ext .html --command 'iconv -f KOI8-R -t UTF-8' your_repo new_repo It's not going to be fast, either.
[extensions] color = pager = [pager] pager = LESS='FRXj4' less
$ svnadmin dump repos/test1 |\ svndumpfilter --drop-empty-revs \ include /path/to/file1.txt /path/to/file2.txt > test1.svn $ svnadmin create test2 $ svn mkdir --parents file://$PWD/test2/path/to $ svnadmin load test2 < test1.svn
<<< Started new transaction, based on original revision 540 * editing path : path/to/file1.txt ...svnadmin: E160013: * File not found: transaction '0-0', path * '/path/to/file2.txt'