Tutto è nel titolo ...Perché "git status" non visualizza commit non premuti in un ramo?
ho letto questa domanda: Viewing Unpushed Git Commits
Ma io non capisco perché git status
visualizza tutti i commit unpushed nel ramo principale, ma non visualizza nulla in altri rami.
Qualcuno può spiegarlo?
EDIT
Ecco quello che comanda e uscite ho fatto/ottenere:
[email protected]:/home/repo/$ git branch
new_feature
* master
[email protected]:/home/repo/$ git checkout new_feature
Switched to branch 'new_feature'
[email protected]:/home/repo/$ echo test > newfile.txt
[email protected]:/home/repo/$ git add newfile.txt
[email protected]:/home/repo/$ git commit -m "Test commit"
[new_feature 51c6a64] Test commit
1 file added
[email protected]:/home/repo/$ git status
# On branch new_feature
nothing added to commit
Perché lo commettono appare quando si usa git status
?
possibile duplicato di [Come fai diventare un ramo Git esistente traccia di un ramo remoto?] (http://stackoverflow.com/questions/520650/how-do-you-make-an-existing-git-branch-track-a-remote-branch) – arnorhs
@arnorhs, sei tecnicamente corretto ma presumo che l'OP non fosse a conoscenza di tutto quel meccanismo di tracciamento delle filiali in modo da non avere alcuna possibilità di trovare quella domanda. Quindi non voterei per chiudere la risposta. – kostix
cool. questo ha senso per me. Posso anche immaginare che le persone che provano a google per la domanda siano formulate in modo simile alla domanda degli OP se non hanno familiarità con il termine git corretto per il tracciamento. È difficile entrare in git con tutto il gergo. – arnorhs