Re: [git-users] Re: Documentation discrepancy

2012-06-26 Thread Thomas Ferris Nicolaisen
Usually, the whole index is committed as an indivisible unit. The trick of git commit is that it avoids using the index completely. It goes straight from work-tree (file) to repository (blob), as far as I can understand. From the docs of git commit :

Re: [git-users] Re: Documentation discrepancy

2012-06-26 Thread Git User
Thanks a lot everyone. Finally figured it out. I think that the following command sequence will do the trick: cp file file.unstaged git co file git commit file mv file.unstaged file I'll try to do a wrapper (`git-commit-staged' for example) and extend it on the case of multiple files. -- You

Re: [git-users] Re: Documentation discrepancy

2012-06-26 Thread Konstantin Khomoutov
On Mon, 25 Jun 2012 22:23:35 -0700 (PDT) Git User wrote: > Thanks again. > > It seems I didn't express myself clearly. OK, let me elaborate on > specific examples: [...] Sorry, have no time to read thoroughly at the moment -- will come back to it later and try to grasp. > If it's too cumberso

[git-users] beginner branch question

2012-06-26 Thread Mostafa Alshrief
i have 2 branches one is the master and other is the develop i'm working on the 'develop' branch i have made some changes but didn't commit, i tried to switched from 'develop' to 'master' with uncommitted changes, and git switched branches corrupting the 'master' branch with changes from the 'd

[git-users] beginner branch question

2012-06-26 Thread Thomas Ferris Nicolaisen
Hi, Git will bring along any uncommitted changes when checking out another branch. It doesn't corrupt or change the branches. If any of the uncommitted changes collide with files changed between branches, it will refuse to switch, and ask you to stash the changes first. -- You received this

[git-users] Re: beginner branch question

2012-06-26 Thread Mostafa Alshrief
> Git will bring along any uncommitted changes when checking out another > branch. It doesn't corrupt or change the branches > i meant missing the content of the master branch by updating it's content from the develop branch. If any of the uncommitted changes collide with files changed between

[git-users] git tag and branch

2012-06-26 Thread jack sparrow
i have a list of tags in a git repo, how do i checkout a branch with that the tag version. I tried git branch this doesn't seem to be working.on the otherhand if i do git checkout , it is creating branch with no name, but the version seems to be correct. so what is the correct way of checking out

[git-users] Re: git tag and branch

2012-06-26 Thread Jeenu
On Wednesday, June 27, 2012 7:33:54 AM UTC+5:30, jack sparrow wrote: > > i have a list of tags in a git repo, how do i checkout a branch > with that the tag version. I tried git branch > this doesn't seem to be working.on the otherhand if i do > git checkout , it is creating branch with no >