How to create a repository?

Go to the project's working directory

Before running the Git command to create the repository, we need to make sure that we’re in the right directory. In this article we will follow the process on MAC Operating System but it is similar in Windows and Linux.

FOR MAC & LINUX

Open the Terminal app which can be found in Applications > Utilities.

FOR WINDOWS:

Open the Command Prompt from Start > Windows System, or by pressing Windows + R then typing cmd and clicking OK.

 

If you have created a folder for your project called laravel-demo in a WebProjects folder in your home directory, you’ll need to run the following command:

cd ~/WebProjects/laravel-demo

Creating the repository

Once you’re in the correct directory, enter git init in your command line and press enter to create a new empty Git repository. If successful, you should see a message like this:

Initialized empty Git repository in /Users/bhavik/WebProjects/laravel-demo/.git/

A hidden folder named .git will have just been created inside your project’s working directory. This folder is your local copy of the repository information which contains all the information Git stores about your repository including historical changes, remote repository addresses, and more.

Deleting the .git folder won’t delete any of the files in your project, however you’ll lose access to all of the historical changes tracked by Git.

 

Offer available till 15th July 2020 and Only 50 Coupons left!

Creating apps that helps to improve your productivity with minimal efforts!

Terms & conditions

* Discount applicable only on Ultim8e Deployer.

WE ACCEPT

©2020, Ultim8e.com. All Rights Reserved. Powered by Ingress IT Solutions

GO TOP

Choose your currency:

Close
Converted prices are for reference only - all orders are charged in $ US Dollars ($) USD.
  • USDUS Dollars ($)
  • EUREuros (€)
  • GBPPound Sterling (£)
  • AUDAustralian Dollars ($)
  • BRLBrazilian Real (R$)
  • CADCanadian Dollars ($)
  • CZKCzech Koruna
  • DKKDanish Krone
  • HKDHong Kong Dollar ($)
  • HUFHungarian Forint
  • ILSIsraeli Shekel (₪)
  • JPYJapanese Yen (¥)
  • MYRMalaysian Ringgits
  • MXNMexican Peso ($)
  • NZDNew Zealand Dollar ($)
  • NOKNorwegian Krone
  • PHPPhilippine Pesos
  • PLNPolish Zloty
  • SGDSingapore Dollar ($)
  • SEKSwedish Krona
  • CHFSwiss Franc
  • TWDTaiwan New Dollars
  • THBThai Baht (฿)
  • INRIndian Rupee (₹)
  • TRYTurkish Lira (₺)
  • RUBRussian Rubles
  • AOAAngolan Kwanza