2016-09-13 37 views
6

git checkout -'u açtığımda, gitmiş olduğum son dalı denetler. Bu bilgi nerede saklanıyor?Git son kontrol edilen dalı nerede saklar?

+0

Bu yararlı olabilir son checkout: ... hattının branchA olduğunu //stackoverflow.com/questions/7206801/is-there-any-way-to-git-checkout-previous-branch –

cevap

3

Bu son hat için .git/logs/HEAD (HEAD için reflog) gibi bakıyor tarar:

:

checkout: moving from <branchA> to <branchB> 

"son dal" branchA


olarak in the post @SergioTulentsev ile bağlantılı sözü olduğunu

git checkout - as git checkout @{-1} için hortlak. http:

  • @{-1} ...
  • @{-2}checkout: ... hattını oluşturmak
  • vb son önceki bir branchA olan
İlgili konular