-->

how to setup and install local git server on windows

how to setup local git server on windows
 
 
There are easiest way how to setup your local git in your server under windows platform :


download and install git for windows from git-scm.com

 
open command prompt / windows powershell.

 
type this script to create new git project :

git init yourprojectname.git --bare
 
 
goto that folder by typing this 
 
cd yourprojectname.git
 
 
make a branch 
 
git branch  
 
 
now clone your git project 
 
cd .. 

git clone yourprojectname.git
 
 
enter those cloned git project  
 
cd yourprojectname
 
 
add dot folder to store git file 
 
git add . 
 
 
create new readme.txt file 
 
touch readme.txt
 
 
commit those readme.txt 
 
git commit -m "-add readme"
 
 
try to push git 

git push
 
 
then pull the git  

git pull

0 Response to "how to setup and install local git server on windows"

Posting Komentar

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel