Skip to main content
Filter by
Sorted by
Tagged with
-1 votes
1 answer
256 views

I have a Git server service implemented based on go-git, and the repository has multiple copies on different machines. When a machine goes down and is replaced, I perform a full clone of the ...
someone's user avatar
0 votes
2 answers
109 views

I need to get the same result of git describe <hash> for remote repository. For example, given the hash d96edbcf, I want to get something like v0.54.0-1-gd96edbcf I need to this for multiple ...
pablochacin's user avatar
  • 1,026
1 vote
1 answer
378 views

I'm currently working on a web editor integrated with Git using the go-git library. I'm looking for a way to programmatically check for modifications in the working area before adding files to a ...
Durval Carvalho's user avatar
2 votes
0 answers
50 views

I've been chipping away at trying to better understand how to set up the initial state of a test within my application. The initial setup that I need is fairly minimal: Set up a git repository for my ...
Dennis Gray's user avatar
1 vote
2 answers
938 views

Trying to clone a repo from Azure devops. func (gitopt *GitOptions) clone() (*git.Repository, error) { r, err := git.PlainClone(gitopt.RepoDir, false, &git.CloneOptions{ Progress: os....
Salmaan shaik's user avatar
2 votes
0 answers
386 views

My golang application needs to list all file and folder paths in a subfolder of a git repo (a search path). I only care about the HEAD commit. I'm using the go-git library to clone the repo and ...
BeetleJuice's user avatar
  • 41.1k
3 votes
1 answer
2k views

What is the canonical way to push specific single local branch to specific remote with go-git? I have a local repository checked out and opened with go-git repo, err := git.PlainOpen("my-repo&...
David Lukac's user avatar
2 votes
1 answer
4k views

I've set up Git with SSH following https://docs.github.com/en/authentication/connecting-to-github-with-ssh; specifically, I've added my key to the SSH agent following https://docs.github.com/en/...
Kurt Peek's user avatar
  • 58.7k
1 vote
1 answer
410 views

My application use go-git library and I recently became aware of CVE-2022-23521 , CVE-2022-41903 issues about git. I want to know if these issues affect go-git (https://github.com/go-git/go-git). This ...
alexmoon's user avatar
  • 466
1 vote
0 answers
115 views

I have a huge repository with extensive commit history. To reduce clone time, I do a single branch option with a depth of 1. This immensely speeds up my cloning time however, it cannot properly ...
Sathish's user avatar
  • 419
2 votes
1 answer
2k views

I'm just starting to use the go-git library and so far it looks very promising. However, I'm trying to do a basic checkout of an existing branch and it is failing with "reference not found". ...
Brooksy's user avatar
  • 23
0 votes
1 answer
5k views

Tested a official test code in a Argo CD reference. https://argo-cd.readthedocs.io/en/stable/operator-manual/applicationset/Generators-Git/ apiVersion: argoproj.io/v1alpha1 kind: ApplicationSet ...
임진욱's user avatar
1 vote
0 answers
129 views

I am trying to analyze the git commit log by using go-git. But I encountered some problems and failed to solve them after many attempts. In WSL(Ubuntu18.04), the command root@(XXXXXXX/XXXXXX):.../www/...
mmmhongyu's user avatar
1 vote
1 answer
1k views

I want to clone a specific repository, fetch all tags and iterate through them. For each tag I want to checkout a specific file ( package.json ) in the root directory. If no file is present, it should ...
baitendbidz's user avatar
  • 1,039
0 votes
1 answer
440 views

I am using go-git and I would like to print the short hash. I mean, for example "a83ad00" instead of "a83ad004b3c5971a194ba86b96fe313b94bbcde7". I looked at the source code of got-...
guettli's user avatar
  • 28k

15 30 50 per page