Re: get kernel version using git
On Tue, Jul 07, 2009 at 01:39:34PM +0200, Belisko Marek wrote: > it's possible after kernel git-pulling get what actual kernel > version is updated? I can read it from Makefile but I'm curious > if exist another way. $ git describe v2.6.31-rc1-195-g5298976 Karel -- Karel Zak -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
get kernel version using git
Hi, it's possible after kernel git-pulling get what actual kernel version is updated? I can read it from Makefile but I'm curious if exist another way. Thanks, Marek -- as simple as primitive as possible - Marek Belisko - OPEN-NANDRA Ruska Nova Ves 219 | Presov, 08005 Slovak Republic Tel: +421 915 052 184 skype: marekwhite icq: 290551086 web: http://open-nandra.com -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
Re: using git
On Mon, May 18, 2009 at 4:03 PM, vibisreenivasan wrote: > > -Original Message- > From: pradeep singh > To: SandeepKsinha > Cc: Kernelnewbies > Subject: Re: using git > > On Mon, May 18, 2009 at 11:20 AM, SandeepKsinha > wrote: >> Hi all, >> >> I have recently started using git... I know quite late. >> >> Say, I make some changes and create a patch. >> I want to revert back the files to the original/initial revision( when >> I created git ), how to do that? >> >> I tried >> git checkout -f >> >> This didn;t work for me. > > Perhaps you have commited your changes to the index already. > What you need is > 1. git reset --hard > Dont we have to say the commit name to which HEAD must be changed? > If a commit was not made this command will change the index & working > directory change to last HEAD. > here since Sandeep has already commited so HEAD will be at the last > commit, so we have to give git reset --hard $(last clean commit) Yes but I was assuming he must have read man page for it as suggested by Manish. Cu, > thanks & regards > vibi > > 2. alternatively - git branch $newbranchname > $shasumofcommitwhichwascleanforyou && git checkout $newbranchname && > git branch -d $oldbranchname > > HTH > >> >> -- >> Regards, >> Sandeep. >> >> >> >> >> >> >> “To learn is to change. Education is a process that changes the learner.” >> >> -- >> To unsubscribe from this list: send an email with >> "unsubscribe kernelnewbies" to ecar...@nl.linux.org >> Please read the FAQ at http://kernelnewbies.org/FAQ >> >> > > > > > > -- Pradeep -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
Re: using git
-Original Message- From: pradeep singh To: SandeepKsinha Cc: Kernelnewbies Subject: Re: using git On Mon, May 18, 2009 at 11:20 AM, SandeepKsinha wrote: > Hi all, > > I have recently started using git... I know quite late. > > Say, I make some changes and create a patch. > I want to revert back the files to the original/initial revision( when > I created git ), how to do that? > > I tried > git checkout -f > > This didn;t work for me. Perhaps you have commited your changes to the index already. What you need is 1. git reset --hard Dont we have to say the commit name to which HEAD must be changed? If a commit was not made this command will change the index & working directory change to last HEAD. here since Sandeep has already commited so HEAD will be at the last commit, so we have to give git reset --hard $(last clean commit) thanks & regards vibi 2. alternatively - git branch $newbranchname $shasumofcommitwhichwascleanforyou && git checkout $newbranchname && git branch -d $oldbranchname HTH > > -- > Regards, > Sandeep. > > > > > > > “To learn is to change. Education is a process that changes the learner.” > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecar...@nl.linux.org > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
Re: using git
On Mon, May 18, 2009 at 11:20 AM, SandeepKsinha wrote: > Hi all, > > I have recently started using git... I know quite late. > > Say, I make some changes and create a patch. > I want to revert back the files to the original/initial revision( when > I created git ), how to do that? > > I tried > git checkout -f > > This didn;t work for me. Perhaps you have commited your changes to the index already. What you need is 1. git reset --hard 2. alternatively - git branch $newbranchname $shasumofcommitwhichwascleanforyou && git checkout $newbranchname && git branch -d $oldbranchname HTH > > -- > Regards, > Sandeep. > > > > > > > “To learn is to change. Education is a process that changes the learner.” > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecar...@nl.linux.org > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- Pradeep -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
Re: using git
On Mon, May 18, 2009 at 11:20 AM, SandeepKsinha wrote: > Hi all, > > I have recently started using git... I know quite late. > > Say, I make some changes and create a patch. > I want to revert back the files to the original/initial revision( when > I created git ), how to do that? man git-reset Thanks - manish > > I tried > git checkout -f > > This didn;t work for me. > > -- > Regards, > Sandeep. > > > > > > > “To learn is to change. Education is a process that changes the learner.” > > -- > To unsubscribe from this list: send an email with > "unsubscribe kernelnewbies" to ecar...@nl.linux.org > Please read the FAQ at http://kernelnewbies.org/FAQ > > -- Thanks - Manish -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ
using git
Hi all, I have recently started using git... I know quite late. Say, I make some changes and create a patch. I want to revert back the files to the original/initial revision( when I created git ), how to do that? I tried git checkout -f This didn;t work for me. -- Regards, Sandeep. “To learn is to change. Education is a process that changes the learner.” -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecar...@nl.linux.org Please read the FAQ at http://kernelnewbies.org/FAQ