แสดงบทความที่มีป้ายกำกับ git แสดงบทความทั้งหมด
แสดงบทความที่มีป้ายกำกับ git แสดงบทความทั้งหมด

Local Git repository in Jenkins

Even if you want to run a Jenkins server locally for testing purposes to correctly configure a job Jenkins still needs to fetch the source from a repository. With Git this can be easily done without configuring a Git server. Just specify the path to a local Git repo with file:// protocol 
Ref : link

  1. Create a fresh bare repository on the server:
    git init --bare newrepo.git
  2. Add it as a remote in your local repo:
    git remote add newrepo git://user@server.com/newrepo.git
  3. git push newrepo master to push a particular branch, or
    git push --all newrepo to push all branches

or 

git clone --bare /path/to/repo newrepo.git
top