Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4067416
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:14:48+00:00 2026-05-20T16:14:48+00:00

How to do Push / Pull works automatically with the other branch of remote

  • 0

How to do Push / Pull works automatically with the other branch of remote repository?
By default, created a “master”.
I added “develop”.
I want everyone to have worked with develop. 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T16:14:48+00:00Added an answer on May 20, 2026 at 4:14 pm

    If you have created a branch named “develop” on the remote repository, everyone that clones this repository will have a reference to this branch, e.g. “origin/develop”, if the alias for the remote repository is “origin”.

    So if I cloned this repository and wanted to work against the develop branch on the remote repository, I’d create a local branch named “develop” that’s tracking “origin/develop”. This can be done in various ways and with different syntax, but I prefer:

    git checkout –track origin/develop

    I can now edit and commit files to my local develop branch and do “git pull” and “git push” to sync with the remote branch.

    If you already have a local branch named develop, which is not a tracking branch, you can set it up with the following command:

    git branch –set-upstream develop
    origin/develop

    Hope this helps!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I can't git push/pull to github from my corporate vpn: git push origin master
Is it possible to get Mercurial to show progress of long-running push or pull
Should I push keypresses to vehicles when they're pressed, or should vehicles pull keys
I want to be able to push out application updates to windows mobile 5
Newbie with git here. I have a Remote Repository, cloned on my PC. It's
I have gitosis setup and working wonderfully using ssh. git@domain.com:repository.git works just as expected.
I have a public repository on github that I'm having trouble handling pull requests
We are working with the model of a single remote repository that all of
I create a new branch in Git: git branch my_branch Push it: git push
I have three remote repository sitting on different remote servers. Server A, Server B

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.