Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] git usunął pliki
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW
View previous topic :: View next topic  
Author Message
donmateo
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2007
Posts: 96

PostPosted: Tue Mar 22, 2011 6:04 pm    Post subject: [SOLVED] git usunął pliki Reply with quote

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
View user's profile Send private message
SlashBeast
Retired Dev
Retired Dev


Joined: 23 May 2006
Posts: 2922

PostPosted: Tue Mar 22, 2011 7:35 pm    Post subject: Reply with quote

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
View user's profile Send private message
donmateo
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2007
Posts: 96

PostPosted: Tue Mar 22, 2011 9:08 pm    Post subject: Reply with quote

no tak, nie zrobiłem commita - czyli co? usunięty?
Back to top
View user's profile Send private message
SlashBeast
Retired Dev
Retired Dev


Joined: 23 May 2006
Posts: 2922

PostPosted: Fri Mar 25, 2011 11:43 am    Post subject: Reply with quote

Moved from Polskie forum (Polish) to Polish OTW.
Back to top
View user's profile Send private message
donmateo
Tux's lil' helper
Tux's lil' helper


Joined: 25 Dec 2007
Posts: 96

PostPosted: Sat Mar 26, 2011 9:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Polskie forum (Polish) Polish OTW All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum