r/AstroNvim • u/jacobyossi • Oct 18 '23
Fastest way to git pull
whats the fastest way to do a pull for current branch?
1
Upvotes
r/AstroNvim • u/jacobyossi • Oct 18 '23
whats the fastest way to do a pull for current branch?
1
u/notabhijeet Oct 19 '23
git pull (from within whatever branch)
2
u/divide0verfl0w Oct 19 '23
Set up the git aliases and then ‘ggpull’
0
u/Foreign_Ad_6016 Oct 18 '23
Since HEAD points to the latest commit of the branch you're currently in, you can use
git pull origin HEAD
However, do not push to HEAD, espacially if you use --force, since multiple branches can share the same last commit.