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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:01:29+00:00 2026-05-20T01:01:29+00:00

I created a new GitHub repo – I want to put my existing repo

  • 0

I created a new GitHub repo – I want to put my existing repo there.
I followed the instructions:

cd existing_git_repo
git remote add origin git@github.com:acme-org/myprj.git
git push origin master

This only pushes the master branch to GitHub.
How do I push everything (including all branches) in my existing repo to my new GitHub repo?

  • 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-20T01:01:30+00:00Added an answer on May 20, 2026 at 1:01 am

    Note: git push –all won’t push your tags, only your branches.

    git push --all
    git push --tags
    

    would really push everything. See also “Set up git to pull and push all branches“.
    Don’t forget the --dry-run option to make some test before actually pushing everything.
    See also GitHub help “Working with remotes” to set your origin to your GitHub remote repo.


    As mentioned in “How to make “git push” include tags within a branch?“, git 1.8.3+ (May 2013) introduced:

    git push --follow-tags
    

    This won’t push all the tags, but only the ones accessible from the branch(es) HEAD(s) you are pushing.

    That can help keeping that operation (pushing commits and tags) done with one command instead of two.

    Git 2.4.1+ (Q2 2015) will introduce the option push.followTags.

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

Sidebar

Related Questions

This is my current status: I created a new repo in github project Cloned
I have JUST created a new github repo on the website. Keep in mind
I created a new repo on github called GHide . The repo is completely
Is it possible to create a new Git Repo at GitHub through restful API
I created gh-pages branch for a repo on github. In that branch, I want
New to Git and just started to use Github. Just created my first public
I want to create a new github repo for an open source project. I
I just create a new repo https://github.com/tolbard/ember-moving . In this repo I extend the
I created a new repository on github. I selected one of the options that
Through the github web interface I created a new repository. I forgot to chose

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.