---
tags: git
title: How to make your local machine as git server?
author: Rupesh Tiwari
---
# How to make your local machine as git server?
How can you make your machine as git server?
And How can you clone repositories from that machine?
## Overall Steps
- Make .git folder in machine-1
- Clone git from machine-2
- check in code from machine-2 that goes to machine-1
## Step 1: In First Machine Create git here
Run below scripts in first machine.
- `mkdir myrepo.git`
- `cd myrepo.git`
- `git init --bare --shared`
- `git remote add origin file:////machine1name/c$/projects/myrepo.git`
- `git remote -v`
## Step 2: 2nd Machine Create git here
Run below script in 2nd machine
- `mkdir projects`
- `cd projects`
- `git clone file:////machine1name/c$/projects/myrepo.git`
Now you should have `myrepo` cloned in your 2nd machine.
You can commit and push to machine 1 your code changes.
---
## Do You Want to become full stack developer? 💻
If you want to become full stack developer and grow your carrier as new software developer or Lead Developer/Architect. Consider subscribing to our full stack development training programs. We have All-Access Monthly membership plans and you will get unlimited access to all of our video courses, slides, source code & Monthly video calls.
- Please subscribe to [All-Access Membership PRO plan](www.fullstackmaster.net/pro) to access current and future angular, node.js and related courses.
- Please subscribe to [All-Access Membership ELITE plan](www.fullstackmaster.net/elite) to get everything from PRO plan. Additionally, you will get access to monthly live Q&A video call with Rupesh and you can ask doubts/questions and get more help, tips and tricks.
> You bright future is waiting for you so visit today [Fullstackmaster](www.fullstackmaster.net) and allow me to help you to board on your dream software company as a Developer,Architect or Lead Engineer role.
### :sparkling_heart: Contact Details: Say :wave: to me!
Rupesh Tiwari\
www.rupeshtiwari.com \
✉️ <fullstackmaster1@gmail.com> \
Founder of [www.fullstackmaster.net](https://www.fullstackmaster.net) 🎓
[<img src="https://i.imgur.com/9OCLciM.png" width="295" height="65">](http://www.fullstackmaster.net)