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

  • Home
  • SEARCH
  • 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 6904701
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T08:05:38+00:00 2026-05-27T08:05:38+00:00

Essentially I’m looking to use git as a download command. I have a project

  • 0

Essentially I’m looking to use git as a download command. I have a project on a centralized server and I’d like to set up an easy way download the project. I would assume that I can set up a git repo on the server and then run git clone locally and that will work but my knowledge and understanding of git is severely lacking apparently. Here is what I’m:

in the directory on the server I run:

// set up the git repo in directory named test
git init
git add .
git commit -m "add are all the files"

then locally I should be able to run git clone http://path/to/directory/test.git (according to the specifications of the host)

But this just gives me an empty repo. I’ve looked at several tutorials but there seems to be a leap between the intro tutorials and doing what I want to do. What am I missing?

There seem to be a lot of questions so I created a chat room: https://chat.stackoverflow.com/rooms/5635/creating-a-git-repo-to-clone-from

  • 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-27T08:05:39+00:00Added an answer on May 27, 2026 at 8:05 am

    On your server, create a “bare” repo (one without a local working copy)

    git init . --bare
    

    Then on your client, bootstrap your repo, and push it

    git init .
    touch .gitignore
    git add .gitignore
    git commit -m "init my repo"
    git remote add origin git://my-git-server.example.com/my_repo.git
    git push origin master
    

    Once you’ve done that, other clients will be able to do a

    git clone git://my-git-server.example.com/my_repo.git
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Essentially, I'm looking for a way to transform GenericList<TInput> to GenericList<TOutput> , where GenericList
Essentially what I am looking for is a good way to build a quick
Essentially, I have a dynamically generated local HTML form that I would like to
Essentially I have built a socket server that multiple clients can connect to and
Essentially, I have to get a flat file into a database. The flat files
Essentially I'd like to know just how compatible are the iPhone and the iPod
Essentially I have a method of a class called killProgram, which is intended to
Essentially, the question is in the title. I have a ASP.NET MVC application, and
Essentially, I need to parse the response string of the CHAT CREATE command with
Essentially, I want to check another object to see if an attribute is set

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.