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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T17:29:56+00:00 2026-05-24T17:29:56+00:00

I have a few git projects where I clone them and start off with

  • 0

I have a few git projects where I clone them and start off with another project based on it. For example, I’ll have CodeIgniter set up in my own way (adding htdocs, a conf/ directory with some apache files I can softlink to, etc).

It’s somewhat like this:

git workflow – using one repo as the basis for another

So I can clone, then clean off the .git directory, then init, add, commit, clone –bare and scp to the server. That works but it seems like I should be able to do that easier.

So I tried clone, then git remote rm origin then git remote add origin ssh://... but I still had to go to my server, create the repo directory and init. This also created the repo in .git instead of just in the top level of the directory (which –bare apparently does).

Am I missing an easier way to do this?

Thanks,
Hans

  • 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-24T17:29:57+00:00Added an answer on May 24, 2026 at 5:29 pm

    I did not find a way to do this, but I do have a personal git repo where lives a complete customized bare repository. I just have to take these steps:

    1. clone
    2. cd dir && rm -rf .git && git init && git add . && git ci -a -m ‘1st commit’
    3. git add remote origin ssh://user@server.com/path/to/git/repo
    4. cd .. && git clone –bare dir dir.git && scp dir.git user@server:/path/to/git/repo

    I’ve documented in my vimwiki and it’s not the end of the world (in fact, I can kickstart an entire dev project on my localhost in 60 seconds and be doing everything from DB work at that point).

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

Sidebar

Related Questions

I've a project developed with GIT and have a few hundred commits. I only
I have a small Python project (a few hundred lines) in a Git repository.
Ok, so I have an android project and a few related java projects in
I have a git repo which has a few branches - there's the master
We have a git repository which contains source for a few related Java WARs
I have a local Git repository I've been developing under for a few days:
I have a lot of pre-existing projects and code in a few different Subversion
I have a server that is hosting my 'bare' GIT repo for a few
I have a Git repository that contains a bunch of top-level maven projects (each
Does anyone know of a way to get numerous read-only git repositories based off

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.