installation and operating gogs

First, install gogs

1. mirrored pull gogs

docker pull gogs/gogs

2. Run gogs container

docker run -di --name=gogs -p 10022:22 -p 3000:3000 -v /var/gogsdata:/data gogs/gogs

3. browser access http://192.168.25.129:3000 , the following picture appears

Which database type generally choose SqlLite, fill in the domain name ip, application server's URL to fill the remaining default

 

Second, create a git repository

1. Registration and Login

2. Create a warehouse, click the plus sign

 Simply fill in the name of the warehouse, and the remaining default

3. Click Create warehouse, created

 

 Third, submit code to the idea gogs

1. Select Menu VCS -> Enable Version Control Integration

2. Set the remote address: Right-click on the project select menu Git -> Repository -> Remotes

3.Git add-> commit-> push, then refresh the page gogs

 

 

Guess you like

Origin www.cnblogs.com/naixin007/p/10955856.html