Jump to content


Photo

how do I checkout latest changes on git repo ?

git checkout update

  • Please log in to reply
5 replies to this topic

#1 lt-commander-data

  • Member
  • 6 posts

0
Neutral

Posted 30 May 2013 - 20:06

Hi,

I know how to work with cvs and svn but I'm new to git.

I was able to checkout OpenPLi and build the first image.

 

Now my next question is how do I checkout latest changes from git repo ? In cvs it would be "cvs update".

After googling, reading and doing some trials I looks like I broke the local copy.

 

Can you help me on how to checkout/follow the updates on the repository ?

Is it possible to bring the local working copy to a defined state again ?

 

thanks



Re: how do I checkout latest changes on git repo ? #2 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 30 May 2013 - 20:49

git pull

and to undo local changes (similar to svn revert):

git reset --hard HEAD

Re: how do I checkout latest changes on git repo ? #3 lt-commander-data

  • Member
  • 6 posts

0
Neutral

Posted 30 May 2013 - 21:07

So I need to change into the directory openpli-openpli-oe-core; execute the git command and all directories will be checked recursively, right ?

I received a message that everything would be up to date. Checking the log file on sourceforge I saw that a merge was done during the last days.

So I thought that there some files would be updated.



Re: how do I checkout latest changes on git repo ? #4 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 30 May 2013 - 21:20

there are git submodules as well, to update those, best use the make target:

make update

(or manually: git submodule update)

Re: how do I checkout latest changes on git repo ? #5 lt-commander-data

  • Member
  • 6 posts

0
Neutral

Posted 31 May 2013 - 18:10

Hoi,
thanks.

Is there any document available which I can study to find read about such commands ?



Re: how do I checkout latest changes on git repo ? #6 pieterg

  • PLi® Core member
  • 32,766 posts

+245
Excellent

Posted 31 May 2013 - 19:09

Google can find a lot of good git howtos


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users