[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Git Packaging Round 1: Hopefully Easy Stuff



On Wed, Aug 14, 2019 at 10:32:29PM +0000, Holger Levsen wrote:
> On Wed, Aug 14, 2019 at 09:08:44PM +0200, Jonas Smedegaard wrote:
> > I systematically turn off Gitlab MR support for projects I am involved 
> > in, because I am not confortable and efficient using it myself, it is 
> 
> what helps me is having a note with this line:
> 
> git config alias.mr '!sh -c "git fetch $1 merge-requests/$2/head:mr-$1-$2 && git checkout mr-$1-$2" -'		
> 
> which I copy & paste into a shell running inside the directory of a git
> repo, and after that "git mr origin 2" will checkout the merge request #2.

Thanks!

You do want --global for the alias, though -- that removes the need to
repeat the config for every machine:checkout pair, requiring it just once
per machine.


Meow!
-- 
⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian is one big family.  Including that weird uncle
⢿⡄⠘⠷⠚⠋⠀ and ultra-religious in-laws.
⠈⠳⣄⠀⠀⠀⠀


Reply to: