Hi Folks, I have a question unfortunately on the net didn''t find a simple answer to my simple question MY QUESTION if I have a commit for example commit 9da53d968e8676a9d22d9fb57v56fef45426937cf Author: Cluter <cluter-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org> Date: Thu Feb 7 15:42:37 2013 -0800 and after I change again the code how can add to the same commit the new changes thank you in advance, C -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Look at git rebase interactive On Feb 7, 2013, at 7:07 PM, Cluter Vipic <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hi Folks, > > I have a question unfortunately on the net didn''t find a simple answer > to my simple question > > MY QUESTION > > if I have a commit for example > > commit 9da53d968e8676a9d22d9fb57v56fef45426937cf > Author: Cluter <cluter-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org> > Date: Thu Feb 7 15:42:37 2013 -0800 > > and after I change again the code how can add to the same commit the new > changes > > thank you in advance, > > C > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Also, if it''s the previous commit you can use `git commit --amend` ~Spaceghost On Feb 7, 2013 7:18 PM, "Greg Akins" <angrygreg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Look at git rebase interactive > > On Feb 7, 2013, at 7:07 PM, Cluter Vipic <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: > > > Hi Folks, > > > > I have a question unfortunately on the net didn''t find a simple answer > > to my simple question > > > > MY QUESTION > > > > if I have a commit for example > > > > commit 9da53d968e8676a9d22d9fb57v56fef45426937cf > > Author: Cluter <cluter-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org> > > Date: Thu Feb 7 15:42:37 2013 -0800 > > > > and after I change again the code how can add to the same commit the new > > changes > > > > thank you in advance, > > > > C > > > > -- > > Posted via http://www.ruby-forum.com/. > > > > -- > > You received this message because you are subscribed to the Google > Groups "Ruby on Rails: Talk" group. > > To unsubscribe from this group and stop receiving emails from it, send > an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit https://groups.google.com/groups/opt_out. > > > > > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
On 8 February 2013 02:13, Johnneylee Rollins <johnneylee.rollins-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Also, if it''s the previous commit you can use `git commit --amend`But I recommend only to amend the previous commit if you are certain that nothing has happened in between. For example if you have pushed to the master repository and then amend you may run into problems. It is ok if you commit, realise almost immediately that you missed something and so amend it, but for anything else do another commit. Colin> > ~Spaceghost > > On Feb 7, 2013 7:18 PM, "Greg Akins" <angrygreg-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> >> Look at git rebase interactive >> >> On Feb 7, 2013, at 7:07 PM, Cluter Vipic <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote: >> >> > Hi Folks, >> > >> > I have a question unfortunately on the net didn''t find a simple answer >> > to my simple question >> > >> > MY QUESTION >> > >> > if I have a commit for example >> > >> > commit 9da53d968e8676a9d22d9fb57v56fef45426937cf >> > Author: Cluter <cluter-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org> >> > Date: Thu Feb 7 15:42:37 2013 -0800 >> > >> > and after I change again the code how can add to the same commit the new >> > changes >> > >> > thank you in advance, >> > >> > C >> > >> > -- >> > Posted via http://www.ruby-forum.com/. >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups "Ruby on Rails: Talk" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> > an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > For more options, visit https://groups.google.com/groups/opt_out. >> > >> > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Ruby on Rails: Talk" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> For more options, visit https://groups.google.com/groups/opt_out. >> >> > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit https://groups.google.com/groups/opt_out. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.
Hi, Use git commit -m ''comment'' On Friday, 8 February 2013 05:37:56 UTC+5:30, Ruby-Forum.com User wrote:> > Hi Folks, > > I have a question unfortunately on the net didn''t find a simple answer > to my simple question > > MY QUESTION > > if I have a commit for example > > commit 9da53d968e8676a9d22d9fb57v56fef45426937cf > Author: Cluter <clu...-hcDgGtZH8xNBDgjK7y7TUQ@public.gmane.org <javascript:>> > Date: Thu Feb 7 15:42:37 2013 -0800 > > and after I change again the code how can add to the same commit the new > changes > > thank you in advance, > > C > > -- > Posted via http://www.ruby-forum.com/. >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-talk/-/v_ZJLsBFJiUJ. For more options, visit https://groups.google.com/groups/opt_out.
thanks a lot for your useful answers C -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit https://groups.google.com/groups/opt_out.