#How to change the revision of master branch on IntelliJ version control

11 messages · Page 1 of 1 (latest)

unborn dagger
#

Hey guys ,I am using Git version control with IntelliJ but when comparing my branch with the master branch it is showing me the older revision of the master branch from where i created my own branch. Is there a way to have Intellij show me the latest master branch revision?

neat pivotBOT
#

Hey, @unborn dagger!
Please remember to /close this post once your question has been answered!

feral jewel
#

git checkout master
git pull

unborn dagger
#

i dont want to checkout tho

feral jewel
#

git stash
to stash changes

unborn dagger
#

so i essentially have to checkout to master branch first and then get a pull there and then checkout back to my branch

feral jewel
#

git fetch <remote> <srcBranch>:<destBranch> you can use this

unborn dagger
#

i will try it

feral jewel
#

so git fetch origin master:master

unborn dagger
#

Ok yeah that worked thanks dude you are awesome