Re: Any command to simplify 'git fetch origin && git reset --hard origin/master'?
- From
Johannes Schindelin <johannes.schindelin@gmx.de>
- Date
- Jan 19, 2008, 11:15 UTC
- Message-ID
- <alpine.LSU.1.00.0801191114310.5731@racer.site>
- In-Reply-To
- <46dff0320801182122t1581b366yad123407aaad6326@mail.gmail.com>
Hi,
On Sat, 19 Jan 2008, Ping Yin wrote:
> I often encounter the case that the origin reposotory is rebased and i > make sure i want to use the origin head as my master > Now I have to do > $ git fetch origin && git reset --hard origin/master
Just make an alias if you're too lazy to type.
Personally, I do not see much sense in it, and it is too dangerous to bless it with an option to fetch or pull.
Ciao, Dscho