Recentemente mi sono trasferito da SVN a git, e cercando di imparare il mio modo di aggirare git. Ho bisogno di trovare i file che sono cambiati tra 2 rami del mio repository. Io uso il seguente comando per che:git diff dà argomento ambiguo errore
git diff branch_2..branch_1
ottengo l'errore follwing:
fatal: ambiguous argument 'branch_2..branch_1': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
ramo git ha pronunciato la seguente O/P:
git branch -a
* branch_1
master/origin
remotes/origin/HEAD -> origin/master
remotes/origin/branch_2
remotes/origin/branch_1
Questa potrebbe essere una domanda stupida, ma se si fa un ramo 'git -a' sono i tuoi rami in quella lista? – idjaw
sì, lo sono. – am28
Puoi incollare ciò che quei due rami sono elencati come nella tua lista? – idjaw