View on GitHub

Quorten Blog 1

First blog for all Quorten's blog-like writings

Git notes

2016-07-08

Categories: git  
Tags: git  

Git notes! How do you set the HEAD without checking out a branch?

git symbolic-ref HEAD refs/heads/remotes/origin/master

Then you can do git lfs fetch (which is faster) followed by git checkout master.

And don’t forget, git clone --no-checkout is also useful too.

Update master without checkout?

git fetch origin master:master

20160708/http://stackoverflow.com/questions/3216360/merge-update-and-pull-git-branches-without-using-checkouts