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 7034549
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:11:58+00:00 2026-05-28T01:11:58+00:00

This is what the remote looks like. –C0————–C4– (master) \ –C1-C2-C3– (lite_main) Actions I

  • 0

This is what the remote looks like.

--C0--------------C4--  (master) 
      \
       --C1-C2-C3--     (lite_main)

Actions I took:

  1. cloned the remote repo
  2. checked out lite_main
  3. made some changes and committed them

Results from git reflog:

27f07f4 HEAD@{0}: commit: ADDING ICON FILES TO FILE SYSTEM
445ef4b HEAD@{1}: checkout: moving from master to lite_main
f9cccc0 HEAD@{2}: clone: from git@bitbucket.org:username/somerepo.git

Results of git branch -a to try to show the tracked branches:

* lite_main
  master
  remotes/origin/HEAD -> origin/master
  remotes/origin/lite_main
  remotes/origin/master

(I don’t really know how to read this buy I’m guessing the only traced branch is my local origin/master is tracked to the remotes/origin/HEAD…is that right?)

Now my local repo looks like this:

--C0--------------C4--  (master) 
      \
       --C1-C2-C3-C5--     (lite_main)

How do I make my remote look like what I have locally? Will pushing lite_main to origin do it?

  • 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-28T01:11:58+00:00Added an answer on May 28, 2026 at 1:11 am

    All you have to do is:

    git push origin lite_main
    

    Additionally, if you want to track the remote when creating the branch you can run the command (when creating the branch) git checkout --track -b <local branch> <remote>/<tracked branch>

    Example git checkout --track -b foo remote/foo

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

Sidebar

Related Questions

I'm using Capistrano run a remote task. My task looks like this: task :my_task
After git clone, the config in the new repo looks like: remote.origin.url=<some url> remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
I have a code that looks like this. <%= link_to_remote View results, { :update=>uxUpdateDiv
Here how my rails form looks like: - form_tag rel_references, :remote => true, :id=>references_form,
I have a WebParts.aspx page which looks like this - <%@ Page Language=C# AutoEventWireup=true
I have a Model in an existing Datastore. Which looks like this: class SomeKind(db.Model):
So... currently, the form submission looks like this: suggested_text is empty. but I use
I have a class user which looks like this: public class User { public
I had thought I would use curl for this but it looks like I
I have a MSSSQL stored procedure performing a distributed transaction that looks like this:

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.