no właśnie robiłem pusha :)
ok, dzięki.


W dniu 26 kwietnia 2013 17:35 użytkownik Tomasz Chiliński <tomasz.chilinski@chilan.com> napisał:
W dniu 26.04.2013 17:28, Tomasz Chiliński napisał(a):

W dniu 26.04.2013 17:09, Marcin napisał(a):
W dniu 26 kwietnia 2013 16:53 użytkownik Tomasz Chiliński
<tomasz.chilinski@chilan.com> napisał:

Co dokładnie w tym momencie pokazuje:
git branch

to może po kolei:

#v+
marcin@testsql:~$ cd elemes/lms/
marcin@testsql:~/elemes/lms$ git branch -l
  master
* nicraM
marcin@testsql:~/elemes/lms$ git status
# On branch nicraM
nothing to commit (working directory clean)
marcin@testsql:~/elemes/lms$ git checkout -b poligon
Switched to a new branch 'poligon'
marcin@testsql:~/elemes/lms$ git branch -l
  master
  nicraM
* poligon
marcin@testsql:~/elemes/lms$ git reset --hard
c2e07bb92a9e026507495f783f27ef2a2759ff6b
HEAD is now at c2e07bb typo
marcin@testsql:~/elemes/lms$ git branch -l
  master
  nicraM
* poligon
marcin@testsql:~/elemes/lms$ git status
# On branch poligon
nothing to commit (working directory clean)

#v-

no i teoretycznie powinno być z brachu nicraM a niestety jest z master :/

zapewne robię gdzieś coś źle, tylko gdzie?

Wygląda na to, że jest to zamierzone. Z przykładu man:
Undo a commit, making it a topic branch

$ git branch topic/wip     (1)
$ git reset --hard HEAD~3  (2)
$ git checkout topic/wip   (3)

1. You have made some commits, but realize they were premature to be
in the "master" branch. You want to continue polishing them in a topic
branch, so create "topic/wip"
branch off of the current HEAD.
2. Rewind the master branch to get rid of those three commits.
3. Switch to "topic/wip" branch and keep working.

więc reset cofa commity zawsze na gałęzi master, a to pozwala
wydzielić pewne commity z gałęzi
master do dowolnej innej gałęzi.
Możesz spróbować zrobić drugiego clone-a z HEAD-em w masterem
ustawionym od razu na ten pożądany commit,
a lokalne zmiany z gałęzi poligon czy nicraM przenieść jako patch do
tego nowego clone-a.

Jest jeszcze taka możliwość:
git checkout nicraM
git reset --hard origin/nicraM/<commit_id>
o ile zmiany z nicraM nie push-owałeś do origin-a.


--
Pozdrawiam
Marcin / nicraM

--
Pozdrawiam
Tomasz Chiliński, Chilan
_______________________________________________
lms mailing list
lms@lists.lms.org.pl
http://lists.lms.org.pl/mailman/listinfo/lms



--
Pozdrawiam
Marcin / nicraM