Re: Any command to simplify 'git fetch origin && git reset --hard origin/master'?

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Ping Yin <pkufranky@...>
Cc: Git Mailing List <git@...>
Date: Saturday, January 19, 2008 - 6:50 pm

Hi,

On Sat, 19 Jan 2008, Ping Yin wrote:


Yes.  Something like

	$ git config alias.imtoolazytotype \
		'!sh -c "git fetch $0 && git reset --hard $0/master"'

See http://git.or.cz/gitwiki/Aliases for more, especially the part about 
advanced aliases with arguments.

Hth,
Dscho

-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: Any command to simplify 'git fetch origin &amp;&amp; git..., Johannes Schindelin, (Sat Jan 19, 7:15 am)
Re: Any command to simplify 'git fetch origin && git..., Johannes Schindelin, (Sat Jan 19, 6:50 pm)