Coder Social home page Coder Social logo

Comments (3)

dmabtrg avatar dmabtrg commented on July 17, 2024

Also, I think we should rebase develop on top of current master before merging any of the open pull requests.

from tutorials.tourguide-app.

dmabtrg avatar dmabtrg commented on July 17, 2024

Following the change from master to develop as default branch, the develop branch was some commits behind master. To fix this before more changes land on the branch, we've just rebased the develop branch on top of master, making the develop branch up to date with the latest changes that were merged to master. This change requires you to update your local copy of the repository and your forks to sincronize the branch. To do this, follow this steps:

  • First, make a backup copy of your local repository, just in case something goes horribly wrong. If using linux, this should be enough:

    cp -a my-local-repository my-local-repository-$( date +%Y%m%d )
    
  • In case you have a local copy of the main repository:

    git checkout develop
    git pull --rebase
    
  • For your local copy of the fork repository:

    • Get the latest changes from the upstream repository:

      git fetch upstream
      
    • If you have local uncommited changes, stash them before rebasing

      git stash
      
    • Rebase the develop branch:

      git rebase upstream/develop develop
      
    • Rebase any branch stemmed from develop

      git rebase develop <branch>
      
    • Push changes to your fork on github

      git push --force origin develop
      git push --force origin <branch>
      

Remember that all development must be done against the develop branch.

from tutorials.tourguide-app.

dmabtrg avatar dmabtrg commented on July 17, 2024

Ok, the new default branch is develop and is up to date with master, so this can be closed.

from tutorials.tourguide-app.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.