Git init How to Initialize/Create/Make a Repository

October 14th, 2011 by Regaz

There are Essentially two Kind of Git Repository:

Initialize a Normal Repository
This kind of Repository is Good for the Local Development and Not for a Remote Shared one. It’s not the Right place to Easily Push on your Developed Code…
This Normal or Whole Form is Initialized or Made by:

git init repoName

Or if already Existing:

cd path/To/yourRepo
git init

Initialize a Bare Repository
The Pure Git Version is Good for Sharing Purposes because is Condensed and so Much Smaller and Easier to Share. It’s Right also as the Remote Container where you Push on your Locally Developed Code. Conventionally it get a .git Extension.
To Initialize a Bare .git Repo you do:

git init --bare repoName.git

Or if already Existing:

cd path/To/yourRepo
git init --bare

This Initialize a Repository holding in only the Content of the .git Directory and no Working Directories. Normally we give it the .git Extension right to Show his Essence. After to Transform it in a Working one and Pull out his Condensed Content we need to clone it.

(Visited 12 times, 1 visits today)

Tags: ,


No Responses to “Git init How to Initialize/Create/Make a Repository”

  1. Hello thanks for the tips but one problem is I am using my own domain name by using CNAME. So instead of http://myBucketName.s3.amazonaws.com/foldername/yourMediaName I am using http://s.mydomainame.com/fooldername/yourMediaName means I have created a s CNAME and pointed to myBucketName.s3.amazonaws.com and in this situation how can I prevent hot link? Thanks in advance.

  2. Hi, thanks for commenting :)

    What the reason to introduce a CNAME in s3 linking?
    You can simply use your Original s3 Address…
    Not?!

    After you can Simply Authorize your CNAME address
    like any other URL…
    I mean you can make a Policy to Authorize your s.mydomainame.com like any other URL to use the S3 bucket.

    Let me know.
    Cheers
    Davide

  3. Anonymous says:

    “What the reason to introduce a CNAME in s3 linking?
    You can simply use your Original s3 Address…
    Not?!”

    It’s concidered good practice to always link from your own domain. It’s supposed to bring (keep) better SEO ranking and your website is trusted better because it all (seems to) come from the same domain!