create account

How to Initialize your Folder/Project/Directory as a Local Git Repository by kamran-rkploy

View this thread on: hive.blogpeakd.comecency.com
· @kamran-rkploy ·
$4.13
How to Initialize your Folder/Project/Directory as a Local Git Repository
<h1>What is a Local Git Repository...?</h1>
Let us keep this simple and understand , what is a git repository.

I am not talking about the one we find on Github or Gitlab but the one you initially create on your local system.

So it is simply a folder that is initialised as a git repository that can then use different commands of git and provide us a nice version control of that folder ,  project or Repo.

But there is something you need to do to make your projects or folder or working fine to act as a local git repository and use the features of the same.

So let us discuss that on how to do that....!!!

<h2>How to Initialize a local Git Repository....?</h2>
Step 1 : Open the terminal and head towards the folder you want to initilialize as a git repository.

![Screenshot from 2021-01-09 22-36-28.png](https://images.blurt.buzz/DQmVrUdNRo5mnCAcCW5gbzhgJUwudr9xgYrRG1dWwkTPBxo/Screenshot%20from%202021-01-09%2022-36-28.png)

Step 2 : Write the following command , "git init".

![Screenshot from 2021-01-09 22-36-42.png](https://images.blurt.buzz/DQmVkZE5UZ5QDVxteZXx1MPnapysH7L5SXEMASJuqdw3Vp3/Screenshot%20from%202021-01-09%2022-36-42.png)

Step 3 : proceed with the command and you will see that it was done.

![Screenshot from 2021-01-09 22-36-47.png](https://images.blurt.buzz/DQmepvGN3C6p4itYxZNLPtqFkk6HLqApBcbaMjmkiufRcpn/Screenshot%20from%202021-01-09%2022-36-47.png)

After performing these steps you will be able to have all the benefits a git repository have.

Your projects or folder will now be initialized as a local git repository.

If you want to know about the benefits of git repository and / or about how to install git on your system then make sure to check my post created before in the past.

Anyways , I will end my post here and I hope that this post was informative to the readers.

Thank You

![B69zEhWZA8UBvwpPuizsrYUTc5ojP7QkMFn5g3XLtenLte7cSSDxu9xqMUA86bT7gWUn3iT8QikiDuTEg22a3CyV9VCq5n9R4PpD2fWv.png](https://cdn.steemitimages.com/DQmajoNAdWy1D4bQFjdvySAe4jG9TBkR5LzTbuNfVma91v8/B69zEhWZA8UBvwpPuizsrYUTc5ojP7QkMFn5g3XLtenLte7cSSDxu9xqMUA86bT7gWUn3iT8QikiDuTEg22a3CyV9VCq5n9R4PpD2fWv.png)
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 27 others
properties (23)
authorkamran-rkploy
permlinkhow-to-initialize-your-folder-project-directory-as-a-local-git-repository
categoryhive-175254
json_metadata{"tags":["git","tutorial","hive","projecthope","india"],"image":["https://images.blurt.buzz/DQmVrUdNRo5mnCAcCW5gbzhgJUwudr9xgYrRG1dWwkTPBxo/Screenshot%20from%202021-01-09%2022-36-28.png","https://images.blurt.buzz/DQmVkZE5UZ5QDVxteZXx1MPnapysH7L5SXEMASJuqdw3Vp3/Screenshot%20from%202021-01-09%2022-36-42.png","https://images.blurt.buzz/DQmepvGN3C6p4itYxZNLPtqFkk6HLqApBcbaMjmkiufRcpn/Screenshot%20from%202021-01-09%2022-36-47.png","https://cdn.steemitimages.com/DQmajoNAdWy1D4bQFjdvySAe4jG9TBkR5LzTbuNfVma91v8/B69zEhWZA8UBvwpPuizsrYUTc5ojP7QkMFn5g3XLtenLte7cSSDxu9xqMUA86bT7gWUn3iT8QikiDuTEg22a3CyV9VCq5n9R4PpD2fWv.png"],"app":"hiveblog/0.1","format":"markdown"}
created2021-01-28 10:55:48
last_update2021-01-28 10:55:48
depth0
children1
last_payout2021-02-04 10:55:48
cashout_time1969-12-31 23:59:59
total_payout_value1.385 HBD
curator_payout_value2.748 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length2,128
author_reputation10,613,690,425,651
root_title"How to Initialize your Folder/Project/Directory as a Local Git Repository"
beneficiaries
0.
accountph-fund
weight5,000
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,594,354
net_rshares23,594,356,418,392
author_curate_reward""
vote details (91)
@ecency ·
Your post has been **voted** as a part of [Encouragement program](https://ecency.com/ecency/@good-karma/encouragement-program-continues-82eafcd10a299). Keep up the good work! <br>Try https://ecency.com and Earn Points in every action (being online, posting, commenting, reblog, vote and more).<br>**Boost your earnings, double reward, double fun!** 😉<br><br>Support Ecency, [in our mission](https://ecency.com/hive/@ecency/proposal-ecency-development-and-maintenance):<br>Ecency: https://ecency.com/proposals/141 <br>Hivesigner: [Vote for Proposal](https://hivesigner.com/sign/update-proposal-votes?proposal_ids=%5B141%5D&approve=true)
properties (22)
authorecency
permlinkre-202122t53159698z
categoryhive-175254
json_metadata{"tags":["ecency"],"app":"ecency/3.0.5-welcome","format":"markdown+html"}
created2021-02-02 04:32:00
last_update2021-02-02 04:32:00
depth1
children0
last_payout2021-02-09 04:32:00
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length635
author_reputation622,874,705,459,673
root_title"How to Initialize your Folder/Project/Directory as a Local Git Repository"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id101,669,990
net_rshares0