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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T03:01:22+00:00 2026-05-25T03:01:22+00:00

i have struggled to implement git as my version control system on numerous occasions…

  • 0

i have struggled to implement git as my version control system on numerous occasions… so frustrated. read numerous articles and tutorials. searched but can’t seem to create a search that addresses what i need to know. In this attempt i am trying to do the following. Tell me if this is wrong please.

  1. MAIN BARE REPO: create a bare repository on my development machine that i can push changes to (done. currently has nothing in it.)
  2. DEVELOPMENT BRANCH REPO: initiate a repository in the directory that i can make changes in and then push to the bare repository. (done. completed the first commit.)
  3. PRODUCTION BRANCH REPO: initiate a repository on my host to pull updates from the bare repository. (not done yet.)

I thought that #1 and #2 were almost done when i attempted to push from DEVELOPMENT to MAIN BARE REPO and got:

no origin was found for working tree

Do i need to set the MAIN BARE REPO as the origin? Is there a command to do that? I’m afraid to ask for an article because most of the material that is written on git i have a really hard time applying for some reason.

If the answer is:

git push --all <url-of-bare-repo>

What does that look like with the following information?

  1. The development branch that i’m pushing from is located at /Users/me/sites/devel_repo
  2. The main bare repo that i’m pushing to is located at /Users/me/sites/main_repo

Thanks.

  • 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-25T03:01:22+00:00Added an answer on May 25, 2026 at 3:01 am

    origin is a remote.

    You can add it like this from your DEV repo:

    git remote add origin path/to/bare/repo
    

    So in your case, it will be like:

    git remote add origin /Users/me/sites/main_repo
    

    Once this is done, you can issue the git push origin master etc.

    Generally, when you clone from another repo, this origin is automatically setup. It is just a convention and a default. You can have some other name if you like.

    Also, note that, to push, it is not necessary to have a remote. It is just a short-hand to a repo path / url so that you don’t have to repeat it again and again. It looked for origin when you pushed because when you do git push, it by default tries to push to origin.

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

Sidebar

Related Questions

I'm pretty new to iPhone development and have struggled to find what I consider
This is a very lame question, but I have struggled with it far too
Have you used VS.NET Architect Edition's Application and System diagrams to start designing a
I have struggled converting this SQL statement to LINQ to SQL VB.Net 9.0. I
I have struggled every step of the way with the process of submitting to
I have struggled with this for a long time, and I did get a
I have struggled and now I just need to see it in action. I
Have struggled with this call for a while now but i can't get it
Recursion is something I have always struggled with understanding. I hope I can get
I have struggled with this issue for several weeks. I have Googled it and

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.