How to Setup Git on Local Network?

0
23

To create a new repository

  1. Create directory using git bash or create manually
  2. User following commands to create repository
    cd /repo/path/projectname.git git
    init --bare
  3. After initialize directory share the directory and grant all permission to local group

To create a local workspace

  1. Create another local repository for local user or other computer use following commands in same order
    cd ~/workspace/local/path
    git init
    git clone user@gitserver:/path/to/your/folder
    git add origin
    repo/path
    git add .
    git status
    git commit
  2. Ref
Previous articleComparing in linux
Next articleSetting Up Git Hub Desktop
Vishal Bhandari is an admin, editor and writer of this portfolio. He writes about himself, his interests, hobbies, activities. He manages many articles about tech, finance, history and geopolitics on his portfolio.

LEAVE A REPLY

Please enter your comment!
Please enter your name here