Git Update Branch While On Other Branch

No need to stash your changes anymore!

RayRay

--

Photo by Yancy Min on Unsplash

I have those moments quite frequently, I need to update my develop branch, but I don't want to switch to it in git.

Well, I discovered a way to fetch another branch you’re working in, but you don’t need to switch.

git fetch origin develop:develop

--

--

RayRay

I’m a 🇳🇱 lead frontend developer who writes about WebDev | JavaScript | TypeScript | Vuejs | Web Components | Design Systems | NuxtJS | StencilJS | CSS