View previous topic :: View next topic |
Author |
Message |
donmateo Tux's lil' helper
Joined: 25 Dec 2007 Posts: 96
|
Posted: Tue Mar 22, 2011 6:04 pm Post subject: [SOLVED] git usunął pliki |
|
|
Witajcie,
przez nieuwagę zrobiłem git pull w katalogu, do którego wrzuciłem bardzo, bardzo ważne pliki.
Code: | ~/semestr/opto/opto4 $ mv dane.ods ../opto-4/
...
~/semestr/opto/opto-4 $ git add
dane.ods .git/
donmateo@gentoolka ~/semestr/opto/opto-4 $ git add dane.ods
donmateo@gentoolka ~/semestr/opto/opto-4 $ git push origin master
fatal: Not a git repository
error: src refspec master does not match any.
error: failed to push some refs to 'git@...opto-4.git' |
teraz stworzyłem jakiś plik na serwerze, dałem git pull i dane.ods znikneło
Czy git naprawdę usunął ten plik? Proszę o pomoc.
Last edited by donmateo on Sat Mar 26, 2011 9:34 pm; edited 1 time in total |
|
Back to top |
|
|
SlashBeast Retired Dev
Joined: 23 May 2006 Posts: 2922
|
Posted: Tue Mar 22, 2011 7:35 pm Post subject: |
|
|
Git pull nie powinien nic takiego zrobic, powinienes dostac merge error i nie powinien ruszac plikow.
Dodales plik ale go nie wycommitowales anyway. |
|
Back to top |
|
|
donmateo Tux's lil' helper
Joined: 25 Dec 2007 Posts: 96
|
Posted: Tue Mar 22, 2011 9:08 pm Post subject: |
|
|
no tak, nie zrobiłem commita - czyli co? usunięty? |
|
Back to top |
|
|
SlashBeast Retired Dev
Joined: 23 May 2006 Posts: 2922
|
Posted: Fri Mar 25, 2011 11:43 am Post subject: |
|
|
Moved from Polskie forum (Polish) to Polish OTW. |
|
Back to top |
|
|
donmateo Tux's lil' helper
Joined: 25 Dec 2007 Posts: 96
|
Posted: Sat Mar 26, 2011 9:33 pm Post subject: |
|
|
ok, udało mi się odzyskać ten usunięty plik. Nigdy nie wierzyłem w programy typu dls+foremost, a one jednak działają! Super! Po takich przygodach chyba nigdy nie zapomnę o git commit : ) |
|
Back to top |
|
|
|