[git-users] Question on Git Hooks

2013-10-14 Thread Ling
can get this hooks create? Thanks Ling -- 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 opti

Re: [git-users] Re: Need sine help on Git hooks

2013-09-04 Thread Ling
Thanks Konstantin, Yes I tried git log $newname $(git merge-base $oldname $newname) and it works fine. Thanks Ling On Wednesday, September 4, 2013 10:55:41 AM UTC-4, Konstantin Khomoutov wrote: > On Wed, 4 Sep 2013 06:50:47 -0700 (PDT) > Ling > wrote: > > > Tha

Re: [git-users] Re: Need sine help on Git hooks

2013-09-04 Thread Ling
Hello Konstantin, I think what we want to have a hook that on the server repository to prevent the local pushes, so I think if we using git log on the server repo, this won't protect us since git log is only created after local pushes, right? and also since when our developers clone the repo t

Re: [git-users] Re: Need sine help on Git hooks

2013-09-04 Thread Ling
Thanks Konstantin and quesiton? you mean git log $newname ^$basename, and is the $newname $basename are: newname is the after pushed refs/heads/Lingfei_test2? and basename is before pushed: refs/heads/Lingfei_test2? Thanks Lingfei On Wednesday, September 4, 2013 9:36:10 AM UTC-4, Konstantin

[git-users] Re: Need sine help on Git hooks

2013-09-04 Thread Ling
meet prerequisites, (let's say if the commit comments include '999', then the push success, else exit). Thanks Ling On Wednesday, September 4, 2013 7:39:41 AM UTC-4, Thomas Ferris Nicolaisen wrote: > > > On Wednesday, September 4, 2013 1:31:26 PM UTC+2, Ling wrote: &g

[git-users] Re: Need sine help on Git hooks

2013-09-04 Thread Ling
the hooks when new push comment not meet my prerequisites. Thanks Ling On Wednesday, September 4, 2013 2:52:15 AM UTC-4, Thomas Ferris Nicolaisen wrote: > > On Tuesday, September 3, 2013 10:34:38 PM UTC+2, Ling wrote: > >> Hello, >> >> I'm kinds of new on

[git-users] Re: Need sine help on Git hooks

2013-09-04 Thread Ling
the hooks when new push comment not meet my prerequisites. Thanks Lingfei On Wednesday, September 4, 2013 2:52:15 AM UTC-4, Thomas Ferris Nicolaisen wrote: > On Tuesday, September 3, 2013 10:34:38 PM UTC+2, Ling wrote: > >> Hello, >> >> I'm kinds of new on Git

[git-users] Need sine help on Git hooks

2013-09-03 Thread Ling
at is the basic flow for pre-receive hook for me to compare the local push commets with server existing comments? Thanks Ling -- 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 ema

[git-users] ERROR: Error (256) while running 'git checkout -q 'branch1'

2013-07-29 Thread Ling
Hello, When I try to checkout the different branch and I got below errros: error: Your local changes to the following files would be overwritten by checkout: . how do I get this working so I can switch branches? Thanks Lingfei -- You received this message because you are subscribed t

[git-users] Error when I use the Git Extensions to clone the repository

2013-07-23 Thread Ling
Hello, When I use the Git Extensions to clone the repository I got below error message: fatal: protocol error: bad line length character: Pass I tried search online but I can't find any relative error out there, so could anyone know what cause this error and how to resolve this? Thanks

[git-users] Help on move the git repo directory from /opt/git to /passdev/git on unix server

2013-06-25 Thread Ling
ll to move each dirctory in one repo, or I can just using unix commands cp to move the whole repository folder? Thanks Ling -- 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 emai