Coder Social home page Coder Social logo

blynn / gitmagic Goto Github PK

View Code? Open in Web Editor NEW
1.9K 1.9K 667.0 2.49 MB

A guide to using Git

Home Page: http://cs.stanford.edu/~blynn/gitmagic/

License: GNU General Public License v3.0

Makefile 49.37% CSS 16.89% XSLT 12.19% JavaScript 7.97% Shell 13.58%

gitmagic's People

Contributors

albertito avatar blynn avatar chopinsky avatar damianmichna avatar derekmahar avatar diseaz avatar doppelganger avatar hasorli avatar jhan0127 avatar jonadem avatar lordofbikes avatar luhuadong avatar matrig avatar matrixfrog avatar mechtilde avatar mifistor avatar murzinv avatar nanjj avatar nioub avatar oferrigni avatar oyvholm avatar polgab avatar soniah avatar subaochen avatar t-t avatar thomie avatar vboden avatar vnwildman avatar voral avatar wojdzie avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gitmagic's Issues

PDF Repo

It's a googd idea to add another repo containing generated PDF

Make a distinction between 'edit' and 'reword' commands.

As I was reading your book, it wasn't immediately clear what the difference between git-rebase's edit and reword commands are. A quick Google gave me an answer, so I'll submit a PR on this issue.

Thanks for your guide, by the way, I find it much easier to understand than most of the content out there on this subject.

git cache functionalities

Since there is not too many git cache related guidance out there, still looking further to those instructions

Build fails on Mac OS X

I tried building it on Mac OS X 10.7 (Lion, 64-bit Intel) and found the following error:

Writing index.html for book
sed -i 's/xmlns:fo[^ ]*//g' book-en/*.html
sed: 1: "book-en/apa.html": undefined label 'ook-en/apa.html'
make: *** [book-en] Error 1

epub rendering?

from what I understand, asciidoc also has ePUB support - would that be something that could be implemented here?

thanks!

make fails on Ubuntu 12.04.1 LTS.

Hello.
Today I have pulled gitmagic repo and trying to build it with make. It fails with:

mkdir -p book-en
rsync book.css book-en/default.css
xmlto -m custom-nochunks.xsl html-nochunks book-en.xml
xmlto: /home/mitya/doc/gitmagic/book-en.xml does not validate (status 1)
xmlto: Fix document syntax or use --skip-validation option
/home/mitya/doc/gitmagic/book-en.xml:1: parser error : Document is empty

^
/home/mitya/doc/gitmagic/book-en.xml:1: parser error : Start tag expected, '<' not found

^
make: *** [book-en.html] Error 11

I am running Ubuntu 12.04.1 LTS with xmlto version 0.0.25

More "exercises"

At the end of chapter 2, there is a small "exercise" showing a few different ways that git can be used to solve a problem. It would be great to have one or two of these in each chapter.

Mistake in chapter 4?

I don't think the "Quick Fixes" section in Chapter 4 (branch.txt) is quite right. git checkout -b creates a new branch, so fixes is a brand new branch that didn't exist before, and presumably doesn't exist in the remote repository either. So when we do a git push, it won't push changes from that branch, it will only push from master or any other branches that were set up as "tracking branches." For the same reason, the git pull at the end of that section won't work.

Am I missing something or is this a mistake?

make fails with the "--latex-engine" option of pandoc (debian sid)

it seems that the option --latex-engine is no longer valid for pandoc 2.2.1 (debian sid)
Workaround: replace --latex-engine with --pdf-engine
Many thanks to all people working on this document.
Kind regards

index fe25ef2..286e026 100644
--- a/Makefile
+++ b/Makefile
@@ -60,22 +60,22 @@ $(foreach l,$(LANGS),book-$(l).html): book-%.html: book-%.xml
 	pandoc -s -f docbook -t html5 -o $@ $^
 
 $(foreach l,$(LANGS),book-$(l).pdf): book-%.pdf: book-%.xml
-	pandoc -s -f docbook -o $@ --latex-engine xelatex $^
+	pandoc -s -f docbook -o $@  --pdf-engine=xelatex $^
 
 book-ru.pdf: book-ru.xml
-	pandoc -s -f docbook -o $@ --latex-engine xelatex -V mainfont='DejaVuSansMono' $^
+	pandoc -s -f docbook -o $@ --pdf-engine xelatex -V mainfont='DejaVuSansMono' $^
 
 book-uk.pdf: book-uk.xml
-	pandoc -s -f docbook -o $@ --latex-engine xelatex -V mainfont='DejaVuSansMono' $^
+	pandoc -s -f docbook -o $@ --pdf-engine xelatex -V mainfont='DejaVuSansMono' $^
 
 book-ko.pdf: book-ko.xml
-	pandoc -s -f docbook -o $@ --latex-engine xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono' $^
+	pandoc -s -f docbook -o $@ --pdf-engine xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono' $^
 
 book-zh_cn.pdf: book-zh_cn.xml
-	pandoc -s -f docbook -o $@ --latex-engine xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono' $^
+	pandoc -s -f docbook -o $@ --pdf-engine xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono' $^
 
 book-zh_tw.pdf: book-zh_tw.xml
-	pandoc -s -f docbook -o $@ --latex-engine xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono' $^
+	pandoc -s -f docbook -o $@ --pdf-engine xelatex -V CJKmainfont='WenQuanYi Micro Hei Mono' $^
 
 $(foreach l,$(LANGS),book-$(l).epub): book-%.epub: book-%.xml
 	pandoc -s -f docbook -o $@ $^

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.