Languages
[Edit]
EN

Git - create local repository

9 points
Created by:
Brett4
465

In this short article, we would like to show how to create local repository using Git.

Git is distributed version control system that lets to create local repositories. Using local repository we are able to track local changes in indicated directory. Using that repositories we do not push changes to remote server.

Quick solution (run the commands):

Where: commands create directory and initialize local git repository inside.

 

Practical example

Edit

In this section, we want to show how to create local repository that will be called my_gallery.

Simple steps:

  1. create local directory using:
  2. goto local directory using:
  3. create local repository using:

 

Repository usage

Edit

Commits and changes tracking can be achieved using:

Hint: git push is not used because we want to track changes locally.

 

1
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join