[Linux-Biella] hg vs git spiegatemi
Daniele Segato
daniele.bilug a gmail.com
Mar 22 Nov 2011 16:27:18 CET
On Tue, 2011-11-22 at 16:07 +0100, Federico "Darkmagister" Pietta wrote:
> On 22/11/2011 15:56, Daniele Segato wrote:
> >
> > fai:
> >
> > git branch
> >
> > git status
> >
> > git remote -v
> >
> > e copiaci l'output
> >
> ¤ git branch
> * (no branch)
> master
ok
non sei su un branch (no branch) con di fianco l'asterisco
invece di
* master
c'è da capire "quando e come" sei uscito dal branch
e ci serve quindi il completo elenco di passi che hai seguito
perché il repo git non si sposta da solo su un commit detached
hai fatto il checkout di qualcosa? (che so un tag?)
comunque per tornare su master adesso puoi fare
git checkout master
però prima ti chiederei di fare:
git describe
e anche
git log -1 --decorate
> 16:05:45 mar nov 22 dm a macewindu ~/src/shotwell
> ¤ git status
> # Not currently on any branch.
> # Untracked files:
> # (use "git add <file>..." to include in what will be committed)
> #
> # "\001"
> nothing added to commit but untracked files present (use "git add" to track)
cos'è questo file "\001" ?
> 16:05:49 mar nov 22 dm a macewindu ~/src/shotwell
> ¤ git remote -v
> origin git://yorba.org/shotwell (fetch)
> origin git://yorba.org/shotwell (push)
>
>
>
> secondo te che file non sono tracciati ????
il file "\001"
che ha un nome un po' strano, ma il problema non è questo
è che non ti trovi su alcun branch
Maggiori informazioni sulla lista
Linux