Thread (16 messages) flat view 16 messages, 8 authors, 2016-06-15

Re: Global .git directory

From: Gerhard Wiesinger <hidden>
Date: 2016-06-15 22:48:43



--
http://www.wiesinger.com/


On Wed, 28 Apr 2010, Tomas Carnecky wrote:
On 4/28/10 7:33 AM, Gerhard Wiesinger wrote:
quoted
BTW: The tutorial on http://git-scm.com/ is IHMO wrong:
git --version
git version 1.6.2.5
git commit -m 'Explain what I changed'
=>
git commit -a -m 'Explain what I changed'
=> Otherwise changed files are not committed, only added ones.
=> Therefore that are 2 commit ...
If you mean the snippets right on the front page, it assumes that you add all 
edited files.
OK, I assumed that the tutorial at
http://git.or.cz/course/svn.html
when switching from svn to git is correct, but it isn't. I unterstand now, 
that git is basically a patch management system where you add or remove 
(rm) files to a patch/commit set (adding in svn means adding or removing 
a file). So this is very different from svn and other SCM systems.

Homepage:
git add (files)
=>
git add (all edited and added files)
would clarify this, too.
quoted
BTW2:
Why is it necessary to do:
# Displays only changed files
git diff
# Displays only added files
git diff --cached

I would like to have a full diff of my changes:
git diff -a
(or better "git diff -a" should be the default behaviour, I think that's
very confusing for new users)
What are 'your' changes? Between HEAD and the working tree (aka. git diff 
HEAD)?
git diff HEAD
# no output.

Ciao,
Gerhard
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help