Facebook Twitter Instagram
    TecAdmin
    • Home
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    You are at:Home»GIT»How to keep your feature branch up to date.

    How to keep your feature branch up to date.

    By RahulSeptember 16, 20201 Min Read

    This is a good idea to create separate branches in git repository for a new features. In that scenario, don’t forgot to keep your feature branch up to date from master branch. So update your feature branch on a regular interval to avoid any merge conflicts.

    Advertisement

    This tutorial will help you to update your feature branch from parent branch. We assume your parent branch is ‘master’. Execute following command to rebase your feature branch with master branch.

    git checkout master 
    git pull 
    git checkout -  
    git rebase master 
    

    The above commands do the followings.

    1. Checkout the master branch and switch to it
    2. Update master branch with latest code
    3. Change back to your feature (original) branch
    4. Rebase feature branch with master branch code

    git rebase
    Share. Facebook Twitter Pinterest LinkedIn Tumblr Email WhatsApp

    Related Posts

    Mastering Git and GitHub for Version Control

    Git Change Remote URL: How to

    Git Change Remote URL in Local Repository

    How to Safely Change Git Remote Origin URL

    Add A Comment

    Leave A Reply Cancel Reply

    Advertisement
    Recent Posts
    • How to List Manually Installed Packages in Ubuntu & Debian
    • 10 Bash Tricks Every Developer Should Know
    • How to Validate Email Address in JavaScript
    • Firewalld: Common Firewall Rules and Commands
    • 12 Apk Commands in Alpine Linux Package Management
    Facebook Twitter Instagram Pinterest
    © 2023 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.