From: Jakub Narebski <jnareb@gmail.com>
To: Shakthi Kannan <shakthimaan@gmail.com>
Cc: git@vger.kernel.org
Subject: Re: di-git-ally managing love letters - a Git presentation
Date: Thu, 04 Jun 2009 07:51:20 -0700 (PDT) [thread overview]
Message-ID: <m3oct46oji.fsf@localhost.localdomain> (raw)
In-Reply-To: <d16b1c80906040441n7ad549eay83a6ccfd5db09fb3@mail.gmail.com>
Shakthi Kannan <shakthimaan@gmail.com> writes:
> I have tried to make a basic presentation on Git, that covers some
> basic commands. Please find it here:
> http://shakthimaan.com/downloads/glv/presentations/di-git-ally-managing-love-letters.pdf
>
> The LaTeX beamer sources are available at:
> http://shakthimaan.com/downloads/glv/presentations/di-git-ally-managing-love-letters.tar.bz2
Why don't you use git to manage LaTeX sources, using for example one
of free git hosting sites (repo.or.cz, GitHub, Gitorious)?
I liked the presentation, especially visualisation of status of
working area, index and object database (repository).
A few comments:
* For which git version do you write your presentation? Modern
git (which might mean just released version, and perhaps even
yet-to-be-released version) has:
- git config --global --edit #; for Windows users
- git log --oneline == git log --pretty=oneline --abbrev-commit
* Nitpick: git index (also known as staging area) does not contain
objects itself. They are put in objects database. The index
contains references to those objects (so they can be found).
* Suggestion: When showing "git diff", "git diff --cached" and
"git diff HEAD" output you might want to show which parts
in the diagram below you compare.
* Why there is no diagram / graph for tagging?
* Nitpick: you have spelled 'git-format-patch' by mistake
instead of modern 'git format-patch'.
>
> I start with git init, add, commit;
* I wonder which of workflows is more common: starting with empty
repository, or starting with some set of files. You can do
"git init" in existing directory. But perhaps starting with
clean state is easier to describe, as you can just "git add .",
while you might want to add only subset of files (using for
example ignore rules) in project import workflow.
> show how to use rm with -f and --cached options;
* I would personally use "git rm -f <file>", but it might be easier
tu add '-f' at the end of line.
> then go on to show reset HEAD (alternative to using --cached?);
* I would guess that this usage ("git reset HEAD <file>") is quite
rare, and would make more sense if there would be some committed
version of <file>; then it wouldn't be equivalent to
"git rm --cached <file>".
> proceed further to show reset --soft
* I think that actual usage of "git reset --soft" is pretty pretty
rare since we have "git commit --amend".
> and --hard options.
* "git reset --hard <revision>" is actually pretty useful.
> Finally, branching, merging, rebase and clone. It is not meant to be a
> comprehensive list of git commands, but, some essential ones to get
> people started with (I hope).
>
> I would appreciate feedback, suggestions on the same. If you feel the
> commands are to be used differently, or in a different workflow
> perhaps, or if you find something that needs to be added, removed or
> fixed, please let me know.
>
> Kindly ignore the nouns used.
I don't know if presentation is not too long. On the other hand it
doesn't cover situations such as non fast-formard merge...
--
Jakub Narebski
Poland
ShadeHawk on #git
next prev parent reply other threads:[~2009-06-04 14:52 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-04 11:41 di-git-ally managing love letters - a Git presentation Shakthi Kannan
2009-06-04 11:51 ` Johannes Schindelin
2009-06-04 12:44 ` Matthieu Moy
2009-06-05 4:55 ` Shakthi Kannan
2009-06-04 12:56 ` Magnus Bäck
2009-06-04 14:51 ` Jakub Narebski [this message]
2009-06-05 4:52 ` Shakthi Kannan
2009-06-05 6:40 ` Sitaram Chamarty
2009-06-05 11:45 ` Shakthi Kannan
2009-06-06 8:29 ` Shakthi Kannan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3oct46oji.fsf@localhost.localdomain \
--to=jnareb@gmail.com \
--cc=git@vger.kernel.org \
--cc=shakthimaan@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).