FLTK logo

[fltk.coredev] git question: sync branch with master

FLTK matrix user chat room
(using Element browser app)   FLTK gitter user chat room   GitHub FLTK Project   FLTK News RSS Feed  
  FLTK Apps      FLTK Library      Forums      Links     Login 
 All Forums  |  Back to fltk.coredev  ]
 
Previous Message ]New Message | Reply ]Next Message ]

git question: sync branch with master Greg Ercolano Dec 18, 2021  
 

So if you're working on a branch, and occassionally want to keep up with
current development on origin/master to continue working, what's the best way to sync up?

I believe albrecht said this one command would do the job
if you run into trouble pushing a branch:

    git pull --rebase

Is that also sufficient to keep an "in progress" branch synced with origin/master?
The net seems to recommend the following for resync'ing an in progress branch:

    git checkout master         -- switch from your branch to master
    git pull                    -- get the latest from the remote. If your local master is clean, this shouldn't fail
    git checkout <local-branch> -- switch back to your branch
    git rebase master           -- rebase your branch to master

..or is that pretty much the same thing that 'git pull --rebase' does while you're
on your branch?


--
You received this message because you are subscribed to the Google Groups "fltk.coredev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fltkcoredev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/fltkcoredev/fd2439e9-5132-e6f1-d4d3-b7417475699e%40seriss.com.
Direct Link to Message ]
 
     
Previous Message ]New Message | Reply ]Next Message ]
 
 

Comments are owned by the poster. All other content is copyright 1998-2024 by Bill Spitzak and others. This project is hosted by The FLTK Team. Please report site problems to 'erco@seriss.com'.