Questions tagged [gogs]

Gogs is a self-hosted git service written in go.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

How to write a custom template css file for gogs server

I installed an own gogs-server version 0.14.0+dev on my Debian 11 server. The software works well. I can access my repositories via the webserver. My problem is that the filename I use are usually ...
  • 103
0 votes
0 answers
25 views

Openproject:Gogs/Github Integration 403 and empty body

Software: Openproject,Gogs(internal Github clone) Description: I send push notification from Gogs to openproject/webhooks/github, and getting 403 empty body. Redacted information: apikey=42, "...
0 votes
0 answers
36 views

Forbidden - When committing with html tags - GOGS

hi im using gogs 0.11.34 in OKD 3.11, with DB MySql but when I commit and it contains an html tag, it shows the error of: "Forbidden You don't have permission to access this resource" ...
0 votes
0 answers
13 views

Recover Gogs repos after reinstalling

I have a half-dozen previously working repositories (.git files) on Gogs in the correct directory structure. The server drives failed, forcing a rebuild of the host, but the external drive holding ...
0 votes
0 answers
54 views

Git removes first character from branch name

I have a problem with using git. I created a new repository "test". Then I created the branch "master", put some files in there, committed and pushed it. Everything works fine. Now ...
  • 32
0 votes
0 answers
83 views

When use gogs as private git server, can I use a video in README.md?

I deployed a gogs application as our company's private git server. To show an experiment result, I encoded a couple of statistital graphics to a video by H264 fourcc with opencv-python and pyav. The ...
  • 26
0 votes
0 answers
28 views

Integration of documentation (from the sources) in the Gogs wiki

I have a project in a repo gogs. In this project I have a "doc" folder that contains the documentation (jsdoc/html) of the project. I would like this documentation to appear in the wiki (...
  • 185
0 votes
1 answer
69 views

Error Broken Pipe by Pushing Git Gogs in Eclipse

When I try to push my code from eclipse 4.22.0 to local git server, come error messege Can't connect to any repository: http://192.168.0.100:3000/root/ABC (http://192.168.0.100:3000/root/ABC: Broken ...
  • 103
1 vote
1 answer
500 views

git clone fails due to lack of memory on server side

I am trying to clone a git repository from a GOGS server which is located on a Raspberry Pi 3. It fails with the following complaint: git clone git@192.168.0.62:axelle/prog.git Cloning into 'prog'... ...
0 votes
1 answer
57 views

Git does not update branch on repositoy

I have a branch named deliveries and on this branch, I have made some new changes to some files. Then I ran the command git add . to stage the files. And after that I ran git commit (I forgot to add ...
user avatar
1 vote
1 answer
593 views

Do I need to Clone repository for adding a custom branch

I have downloaded a Zip folder of Master branch from a gogs repository and after initializing git in that folder, I have added my own branch and made my own changes. Now my question is, do I have to ...
user avatar
2 votes
2 answers
9k views

Revert a merged pull request from master branch

I have accidentally merged pull request into master branch from my feature branch, which i should not have. I am using gogs . I cannot use revert button as there is not any functionality available. ...
1 vote
1 answer
87 views

Can't get known from /var/lib/docker with 'gogs docker image'. Where is the repository path of Docker on raspberry pi?

My raspberry pi runs a 'git repo docker image' as a server and the docker image is commonly known as 'gogs docker'. I use this command line to check a folder which has been uploaded via git push root@...
2 votes
0 answers
732 views

Pipeline occurs "Could not resolve host" when I use Gogs and Drone to build a CI/CD platform

Physical machine hosts file 192.168.32.103 gogs.com 192.168.32.105 drone.com Gogs virtual machine /etc/hosts file 192.168.32.105 drone.com Drone virtual machine /etc/hosts file 192.168.32.103 gogs....
0 votes
1 answer
293 views

Gogs + Drone: Gogs webhook return 400 with Cannot find repository

Drone CI has this repository in the drone home page, however, gogs webhook request reposonse 400 with cannot find the repository Gogs webhook make a POST/hook request. { "ref": "refs/...
0 votes
1 answer
40 views

Deploy to artifactory based on the data from repo

Would like to know how can use curl to get file from a repository for instance gogs and push to another repository for instance artifacotry. I saw we can use -T which can get from url. The below code ...
  • 5
0 votes
1 answer
317 views

"remote: Gogs: Internal error" error while pushing

I just installed Gogs at my windows environment and when tried to push, I'm getting this error. I checked all the solutions on the internet, I can't find any. One of the solutions I tried is changing ...
1 vote
1 answer
644 views

fresh install gogs panic after setup with mkdir data: permission denied

Here just checking out gogs, I followed a tutorial to setup gogs behind apache. I was able to see the install page, ran install successfully. But unable to go past that step, as I don't see a login ...
  • 780
0 votes
0 answers
234 views

How to see your own file in Gogs locally?

I'm configuring a Gogs on my windows and upload my file on localhost:3000. I Know, my information saves in the SQL database with Xampp. but how can I see uploaded files in My PC, not on Web? Update:...
0 votes
1 answer
1k views

How to Create a branch off an old commit in our GOGs repository, push it to make a tag, then merge the change onto Master without losing our changes?

Our team works on a legacy application and is relatively small and new to using GIT repositories to control our source code. We don't have a Git Master, and we really don't have any way of keeping ...
  • 725
1 vote
1 answer
748 views

How do I remove all files of a particular extension from my git repository (history only, only files not in the latest commit)? [duplicate]

Question is mostly explained in the title. One of my repository contains a lot of binary files that never really change. However, I changed the format I was using for a new file extension/storage ...
  • 63
1 vote
0 answers
194 views

How to sign in on locale drone instance

I'm running drone on my Synology NAS and can't find any hint what the password might be. I started with this instruction and added --env=DRONE_USER_CREATE=username:Imperative,admin:true. In gogs ...
  • 3,098
0 votes
1 answer
139 views

Does the Gogs application require internet access?

Does the Gogs self hosted git implementation require internet access for any reason, if I've enabled the offline mode?
-1 votes
1 answer
132 views

How to set a Path to run Gitea commands in Terminal regardless on the directory?

After installing Gitea from binary, I can only run the Gitea commands from the gitea home dir with eg. ./gitea -v How do I set a Path so that Terminal responds to Gitea commands? The server is up and ...
0 votes
1 answer
1k views

Change localhost:3000 to sub-domain address

I’m trying to change url of my gogs from localhost to my sub-domain. Using NGINX. Configured my sub-domain for git. mydomain. example then added to nginx.conf http section: server { listen ...
  • 17
0 votes
1 answer
219 views

Cannot checkout in jenkins from neighbor gogs container via Java plugin hudson.plugins.git

Simple CICD using gogs/jenkins docker container running on an ubuntu host: When I try to fetch my git repo from the gogs container I get this error: git fetch --tags --progress http://gogs-repo:3000/...
  • 554
1 vote
1 answer
54 views

Secret from Gogs hook (failing to get on python3)

I'm configuring a gogs hook, I have an API that receives this POST from push e.g. secret: myS3cr3t it's supposed that " Secret will be sent as SHA256 HMAC hex digest of payload via X-Gogs-...
  • 592
0 votes
1 answer
413 views

error: cannot spawn hooks/pre-receive:No such file or directory,but hooks/pre-receive is exist in server-side git-repository

A project clone from my Gogs web server, then I add a file to the Git repository,and push this commit to remote, but the terminal report error about cannot spawn hooks/pre-receive:No such file or ...
  • 85
1 vote
1 answer
1k views

Nginx reverse proxy to Gogs

i am trying to implement a nginx server as reverse proxy for accessing my Gogs instance. Reason is i need to access my services from work, where all but standard ports are blocked. To avoid port ...
  • 33
1 vote
0 answers
149 views

Allow access to personnal git server (gogs) on dockerized ubuntu

I just set up an ubuntu server in a docker, and installed gogs on it. Everything seemed to work fine: I can access gogs via firefox without any problem, create repos or add files, but when I try to ...
  • 5,927
2 votes
1 answer
2k views

Import whole repo from gogs to gitlab server

I have task to migrate whole repository from our Gogs server to newly installed Gitlab server! Before considering to forget my repositories history (comments, issues, etc...), do one know of a way to ...
  • 57
2 votes
0 answers
1k views

LibGit2Sharp SSH, Unable to exchange encryption keys

Trying to put together a sample project cloning a repository (hosted in GOGS) using SSH and am getting the following error: Failed to start SSH session: Unable to exchange encryption keys I'm on ...
0 votes
1 answer
4k views

Nginx Reverse Proxy not redirecting?

Update The details in this question are getting long, but I think it narrows down to this: For some reason the host name matters to Nginx when it's trying to figure out whether to proxy the request. ...
  • 39.8k
0 votes
1 answer
1k views

Could not resolve host: git

I've seen Gogs + Drone getsockopt: connection refused but I wonder whether something has changed. My docker-compose.yml git: image: gogs/gogs ports: - '8300:3000' - '443:443' ...
1 vote
2 answers
5k views

Installing gogs with docker-compose

I need to install the GIT-server Gogs as a service in docker-compose. This is quite easy using: services: gogs: image: gogs/gogs:latest ports: - "10022:22" - "3000:3000" ...
  • 2,928
0 votes
1 answer
509 views

Jenkins' response is "Only push event can be accepted."

I want to start a Jenkins as soon as a tag is pushed on Gogs. What I have already done: I installed Gogs Webhook plugin on Jenkins and configured the secret I configured webhook in Gogs to invoke ...
  • 367
-1 votes
1 answer
846 views

mysqldump not found in jenkinsfile

When I used mysqldump command in Jenkinsfile of Gogs (git) to backup my database, I got an error in Jenkins build says that mysqldump not found, even I build first mysql container. Anyone can help ? ...
1 vote
0 answers
309 views

Installing gogs persistent on minishift

I'm trying to install gogs on minishift with persistentVolumes. I did this: c:\> oc login -u system -p admin c:\> oc new-project cicd c:\> oc create -f https://raw.githubusercontent.com/...
  • 367
1 vote
0 answers
47 views

update git submodule when submodule is changed

i currently want to improve my workflow with git. I run a Gogs server on which there are several repos. One repo is software, the others are language files or translations. Since the translators are ...
1 vote
4 answers
1k views

Git Push fails and returns 403 in Windows

Environment client : Windows server : Gogs I'd like to push some sources to git repository. But there are some problems to push it. Error message is below : D:\workspace\excel-demo>git push -u ...
0 votes
1 answer
3k views

Docker compose not mounting volume?

If I run this command the volume mounts and the container starts as expected with initialized state: docker run --name gogs --net mk1net --ip 203.0.113.3 -v gogs-data:/data -d gogs/gogs However if I ...
  • 39.8k
7 votes
2 answers
12k views

Docker compose cannot start service address already in use?

For some reason docker-compose does not like the address 203.0.113.1 for the gogs container in the below configuration. Note that in the below example I have Gogs running on 203.0.113.3 which works, ...
  • 39.8k
3 votes
1 answer
756 views

How to define a pull request template in Gogs Server

Basically I want to define templates for issues and pull request in Gogs repositories as Github does (see here) but I have failed with total success. I tried in the following ways: Create an ...
0 votes
1 answer
344 views

Gogs.io running on subdomain with port

I'm trying to run Gogs.io on an apache webserver along with a standard website, and I'm trying to have Gogs.io used on a subdomain rather than using my standard domain with a port. Gogs.io runs on ...
  • 107
0 votes
2 answers
875 views

"error: pathspec '....' did not match any file(s) known to git" on bare repository

Set up Local normal repository (git init), git version 2.17.0.windows.1 Bare repository (git init --bare) on a separate server git version 2.7.4 Gogs as a UI to the bare repository Problem This has ...
0 votes
0 answers
71 views

Gogs access repository files to use lftp in an hook

I'm using gogs as a git server on a Raspberry. I'd like to create a post-receive git hook to upload changes on my remote server (which I can access only via FTP). I think I can use lftp but the thing ...
  • 347
0 votes
1 answer
464 views

Error while trying to connect MySQL and Gogs containers with docker

On this screens you can see the error that I have screen1 screen2 This is my docker-compose.yml version: '3' services: mysql: image: mysql:latest restart: always ports: - ...
-1 votes
1 answer
512 views

http auth does not work with TortoiseGit

Every time I try to clone any repo with TortoiseGit from our remote gogs repo I get 401 (Unauthorized). Using http://user:pw@ex.ample.com/user/repo.git as checkout url does not work either. ssh is ...
  • 496
0 votes
0 answers
234 views

Gogs on Nginx in subdomain is not working

I have some Problems with gogs and nginx in my local-Network. everytime i write "domainname" i mean the hostname of the server I have little Server running with Openmediavault on it (for NAS) and i ...
0 votes
0 answers
560 views

401 error on push to Gogs Git with public repository

a Push to a remote will throw exception if repository is public. Same code will work if repository is private. The second call will also throw 401 error. Push with commandline or Sourcetree is ...