Questions tagged [git-repo]

Repo is a tool built by Google that works on top of Git. Repo helps manage many Git repositories, uploads to a revision control system, and automates parts of the Android development workflow. Repo is not meant to replace Git, only to make it easier to work with Git in the context of Android. The repo command is an executable Python script that you can put anywhere in your path.

Repo is a tool built by Google that works on top of Git. Repo helps manage many Git repositories, uploads to a revision control system, and automates parts of the Android development workflow. Repo is not meant to replace Git, only to make it easier to work with Git in the context of Android. The repo command is an executable Python script that you can put anywhere in your path.

To work with the Android code, you will need to use both Git and Repo. In most situations, you can use Git instead of Repo, or mix Repo and Git commands to form complex commands. Using Repo for basic across-network operations will make your work much simpler, however.

See these documentation pages for more information:

99 questions
1
vote
1 answer

VSCode Go extension Error loading workspace with private repository dependency

Everything was working fine until I added a dependency of a private repository. I noticed that autocomplete stopped working and there was an error notification by vscode: Error loading workspace: err: exit status 1: stderr:…
RasmusN
  • 147
  • 1
  • 12
1
vote
0 answers

Does clearing dangling objects in a git repository using gc --prune=now help in anyway?

I sometimes notice a large number of dangling objects in some GIT repositories. I have a primary-->mirror setup and i run the scheduled garbage collection only on the mirror repository everyday instead of auto.gc. So am not worried about loosing the…
Senthil A Kumar
  • 10,306
  • 15
  • 44
  • 55
1
vote
2 answers

git cannot push an existing repository. 'remote-httpshttps' is not a git command

Failed to push existing git repository to remote. It did not happen before. I have tried install the last version of git but still fail to push. git push --set-upstream origin master git: 'remote-httpshttps' is not a git command. See 'git --help'.
Mas Zero
  • 503
  • 3
  • 16
1
vote
0 answers

Is there a good reason why working trees should be created at the same directory hierarchy level as the git repo?

When I went through many tutorials related to git worktree, everywhere in the command which was used to demonstrate the creation of worktree, .. was used for the path where the working tree should be created - which indicates that the new working…
Darshan L
  • 824
  • 8
  • 30
1
vote
1 answer

Unequivocally checkout a branch and get latest version in git from a script

I am creating a shell build script. I want it to be called like this: ./build.sh REPONAME BRANCHNAME $REPONAME corresponds to a remote. I am assuming that the remote exists. $BRANCHNAME is a branch existing on $REPONAME. $BRANCHNAME may have never…
transient_loop
  • 5,984
  • 15
  • 58
  • 117
1
vote
1 answer

How to automatic change git repository domain on the clients when pull?

I have self-hosted Gitlab installation on a domain. And I need to move Gitlab instance to a different domain. Almost all another Gitlab data will be saved and migrated to a new location. Is there a solution to automatically and handless change git…
Vadim Rybalko
  • 342
  • 2
  • 12
1
vote
0 answers

Git repository clone failed

I use Spring Tools Suite. I'm getting the error below while trying to clone a Git repository. This is the command I'm using in the IDE: Import -> Projects from Git -> Clone URI. I've tried multiple times but keep getting this same error. Can anyone…
Vidz
  • 11
  • 3
1
vote
1 answer

Error while i try to commit changes in Git via Visual studio 2017

I`m trying to commit to my DevOps using Git source. for some reason I cannot proceed with the commit phase. The error: Git failed with a fatal error. error: open("FinalWorkFinder/FinalWorkFinder/App_Data/aspnet-FinalWorkFinder-20190303122718.mdf"):…
1
vote
1 answer

How to configure git server and client repositories on twol local windows systems?

I am trying configure git server and client using two windows(both with windows 10 os) machines. So, I downloaded git Git-2.18.0-64-bit.exe file and installed on both the machine. First I created the user and email using below commands on client…
Parashuram
  • 303
  • 2
  • 6
  • 19
1
vote
0 answers

How to migrate branched to a new repository without commit history?

I created a new git repository and want to migrate some branches to it. However I don't want to migrate the commit history. what I've done: 1 create new repository and use git remote set-url origin XXXXX to switch to the new repo. 2 I have a…
JarryZhou
  • 11
  • 1
1
vote
0 answers

What is the correct command to use to initialize a repo with more than one mirror reference on a local disk?

What is the correct command to use to initialize a repo with more than one mirror reference on a local disk? repo init -u https://android.googlesource.com/platform/manifest -b "branch" --reference="/local/mirror1/dir/aosp"…
NeoBeum
  • 21
  • 5
1
vote
1 answer

Performing multiple operations simultaneously on repo

We are using Google's git-repo tool for our projects. Our workflow is we make changes , merge it to remote and push tags. My question is, is there any problem if I perform multiple operations at the same time on the same same repo/codeline/tree?…
mrutyunjay
  • 6,850
  • 7
  • 25
  • 35
0
votes
1 answer

How do I merge a specific foler from "Their" repo into "my" repo where the directories are in different directories

I have a repository (my repository) that has a non empty directory, say its called "target". In this folder I have modified files from their repository's target folder. They have updated their files in their target directory, and I want to keep some…
Kevin
  • 3,077
  • 6
  • 31
  • 77
0
votes
1 answer

Someone committed on my github repository after forking it

A user forked one of my github repositories and started committing on its fork. Nevertheless, some of his commits were pushed to my repository despite him not being among the collaborators of the repo. I just know this user used github web interface…
0
votes
0 answers

Identifying Directories Not Tracked by Repo Manifest in Android Project, Including Manually Cloned Git Repos

I'm working on an Android project that uses the Repo tool to manage Git repositories. In my project, I have a mix of directories that are tracked by Repo (i.e., they are in the Repo manifest), Git repositories that were manually cloned and thus are…
Vlad
  • 9,180
  • 5
  • 48
  • 67