git - How do I take the latest from another branch and then do a commit -
git - How do I take the latest from another branch and then do a commit -
pardon me newbie git. understand svn , if can explain in terms of svn, great. currently, using tool github mac. but, open using terminal.
i working locally on master branch. colleague has made changes in branch. before checkin changes, want merge branch local master branch , commit. how go it?
assuming colleague has pushed changes central repository, this
git fetch
git fetch colleagues changes local repository.
let's branch worked on called other_branch
, can merge changes current branch:
git merge origin/other_branch
when done merging can force changes central repository:
git force
git github github-for-mac
Comments
Post a Comment