RE: [git-users] Building GIT: how to get the set of source code on a branch in order to build it?

2016-02-10 Thread Rahmat Budiharso
Git pull only pulls the changes so it will be much faster than clone the
whole repo all over again
On 11 Feb 2016 06:48, "Suu Quan"  wrote:

> Thanks Leam
>
>
>
> Follow up.
>
> Case 2:  already exists from a previous clone.
>
>
>
> Question: is it more efficient to
>
> 1.  Do what Leam just said: “cd ; git pull”
>
> or
>
> 2.  Rm –rf 
> git clone 
>
> ??
>
> (gut feeling it’s #1 that is more efficient)
>
>
>
>
>
> -Original Message-
> From: Leam Hall [mailto:leamh...@gmail.com]
> Sent: Wednesday, February 10, 2016 3:35 PM
> To: git-users@googlegroups.com
> Subject: Re: [git-users] Building GIT: how to get the set of source code
> on a branch in order to build it?
>
>
>
> Case 1:
>
>   git clone 
>
>
>
> Case 2:
>
>   cd 
>
>   git pull
>
>
>
> Welcome to git!
>
>
>
>
>
> On 02/10/16 18:33, Suu wrote:
>
> > my interest is in creating scripts to build software stored in GIT
>
> > repos. (I am a build engineer) Brand new to GIT, actually never used
>
> > it, but now i have to build it.
>
> >
>
> > I just want to 'get' the latest revision of the source code on a
>
> > branch (or master depending on the case), change dir to it, and start
>
> > make/ant/mvn ..., If there are several choices, I am looking for the
>
> > most efficient one.
>
> >
>
> > Case 1: I am on a machine with NO git repository at all (first time
>
> > building that product, or the copy of the repository has been purged).
>
> > How do I get the source code over?  "git clone"?
>
> >
>
> > Case 2: I've got a copy of the repository, from the last time (already
>
> > built at least once, and the directory has not been purged), How do I
>
> > update the source code to be the latest on that branch?
>
> > 'git pull' ? 'git fetch' ?
>
> > Is it better/more efficient to purge the old code and start from scratch?
>
> >
>
> > Thanks in advance
>
> >
>
> > If that helps, I'm mostly on Linux or Unix
>
> >
>
> > --
>
> > You received this message because you are subscribed to the Google
>
> > Groups "Git for human beings" group.
>
> > To unsubscribe from this group and stop receiving emails from it, send
>
> > an email to git-users+unsubscr...@googlegroups.com
>
> >  >.
>
> > For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
>
> You received this message because you are subscribed to a topic in the
> Google Groups "Git for human beings" group.
>
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/git-users/OKAbS8iXvxs/unsubscribe.
>
> To unsubscribe from this group and all its topics, send an email to
> git-users+unsubscr...@googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> --
> You received this message because you are subscribed to the Google Groups
> "Git for human beings" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to git-users+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups "Git 
for human beings" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [git-users] searching commit msg in git log

2013-07-16 Thread Rahmat Budiharso
To limit the number of logs shown use `git log -n` where n is the number og 
logs you want, ex. to show only last 5 commit logs, you can do `git log -5`

To search for commit message in git logs, use `git log --grep message you want 
to search`

Rahmat Budiharso

http://rbudiharso.com
http://rbudiharso.wordpress.com

On Jul 17, 2013, at 11:51 AM, python.beggine...@gmail.com wrote:

 Hi,
 
 I am trying to grep for git commit msg in git log...once I do git log..the 
 log is really huge?is there a way to get only the last 100 commits or is 
 there an efficient way to search commit msg in git log ?suggestions please?
 
 Thanks,
 
 -- 
 You received this message because you are subscribed to the Google Groups 
 Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.
  
  

-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] basic queries on branching merging in Git

2013-03-04 Thread Rahmat Budiharso
the failed auto merge happens because you modify the same file on both that
saved in the stash and in b2 which you merge prior to popping the stash.

When git want to apply changes that recorded in the stash, git found that
the file has changed since the last time you do a git stash so git can't
apply the changes cleanly thus the failed auto merge.

In that case after doing 'git stash pop' you just need to resolve the
conflict, doing 'git status' will tell you which files that has conflict in
them and then you just need to decide which changes are the 'correct' one.
Git make this easier for you by marking the conflicted part with ''
and ''.

After you've done with the conflicted files just save them and do a 'git
stash drop' to remove the merged stash and you'll be green again.
On Mar 4, 2013 11:37 PM, Konstantin Khomoutov 
flatw...@users.sourceforge.net wrote:

 On Mon, 4 Mar 2013 06:59:56 -0800 (PST)
 Surya kasturisu...@gmail.com wrote:

 [...]
  For testing, I took 1 single file.
  created a branch b1.. edited it. Instead of staging, I stashed...
  then checked out master
  then created b2 branch
  edited the file again (different data).. this time, staged- did
  commit.. checked out master, and merged branch b2.
 
  Now, I went back to b1.
  did stash pop
  now I see
 
  Auto-merging conflict

 Impossible.  You must have had some other changes on b1 compared to its
 state at the time of recording that stash record.

 A stash entry contains changes relative to the base version which was
 checked out at the time you recorded that entry (in other words, what
 HEAD pointed to at the moment).  So when you apply these changes to
 *the same* base version, they are guaranteed to apply cleanly.

 So supposedly you updated b1 as well after recording your stash or did
 something like this.

 --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] Empty directories with submodules

2013-03-04 Thread Rahmat Budiharso
Have you try do a 'git submodule update --init' ?
On Mar 5, 2013 12:48 AM, FlashBurn rail.shafigu...@gmail.com wrote:

 I added a few submodules to my project (I already had some and needed a
 few others) at home and then I tried ran a pull request at work. The only
 thing that happened is that it re-created empty directories with submodules.
 git pull
 git submodule status
 some sha1 value bundle/FuzzyFinder
 some sha1 value bundle/L9
 some sha1 value bundle/vim-pathogen
 some sha1 value bundle/vim-powerline
 some sha1 value bundle/vim-project

 All of those directories were empty. I tried running
 git submodule update

 But nothing happened. Those directories stayed empty.
 Can anyone explain why those submodules were not cloned? I had to run
 git sumodule init
 git submodule update

 Only after that I got all my sumodules. Do I have to run git submodule
 init every time I add a new one? My understanding was is that I have to run
 git submodule update. Does anybody know what is the issue? Any help is
 appreciated.

 I'm running
 Windows XP Pro Version 2002 SP 3
 git 1.8.0.msysgit.0

  --
 You received this message because you are subscribed to the Google Groups
 Git for human beings group.
 To unsubscribe from this group and stop receiving emails from it, send an
 email to git-users+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
You received this message because you are subscribed to the Google Groups Git 
for human beings group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to git-users+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.




Re: [git-users] why can't I add vim-latex as a submodule?

2012-11-01 Thread Rahmat Budiharso
have you run 'git submodule update --init' ?

-- 
Rahmat
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Friday, November 2, 2012 at 10:52 AM, Chris Lott wrote:

 I am trying to install the vim-latex plugin as a git submodule. The github is:
 https://github.com/jcf/vim-latex
 
 I am using the given repository info:
 https://github.com/jcf/vim-latex.git
 
 the command I am using is:
 git submodule add https://github.com/jcf/vim-latex.git bundle/vim-latex
 
 But when I do that, nothing happens... this has worked fine for all other 
 plugins I have installed as submodules...
 -- 
  
  

--