Facebook Twitter Instagram
    TecAdmin
    • Home
    • Ubuntu 20.04
      • Upgrade Ubuntu
      • Install Java
      • Install Node.js
      • Install Docker
      • Install LAMP Stack
    • Tutorials
      • AWS
      • Shell Scripting
      • Docker
      • Git
      • MongoDB
    • FeedBack
    • Submit Article
    • About Us
    Facebook Twitter Instagram
    TecAdmin
    Home»GIT»How to keep your feature branch up to date.

    How to keep your feature branch up to date.

    RahulBy RahulSeptember 13, 20201 Min ReadUpdated:September 16, 2020

    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.

    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
    Previous ArticleHow to Install Jenkins on Ubuntu 20.04
    Next Article Take Your Business to the Next Level Using Enterprise Software Applications

    Related Posts

    How to Create Empty Branch in Git Repository

    1 Min Read

    How to Install Latest Git on Ubuntu 22.04

    Updated:May 31, 20222 Mins Read

    How To Install Git on Fedora Linux

    Updated:May 31, 20222 Mins Read

    How To Add a Git Remote Repository

    3 Mins Read

    How to Git Reset to Head

    Updated:November 3, 20213 Mins Read

    How to Delete a File on Git

    3 Mins Read

    Leave A Reply Cancel Reply

    Recent Posts
    • Filesystem Hierarchy Structure (FHS) in Linux
    • How to accept user input in Python
    • What is difference between var, let and const in JavaScript?
    • What is CPU? – Definition, Types and Parts
    • What is the /etc/aliases file
    Facebook Twitter Instagram Pinterest
    © 2022 Tecadmin.net. All Rights Reserved | Terms  | Privacy Policy

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