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
102
votes
4 answers

Alternatives to Git Submodules?

I feel that using Git submodules is somehow troublesome for my development workflow. I've heard about Git subtree and Gitslave. Are there more tools out there for multiple repository projects and how do they compare ? Can these tools run on…
Chau Chee Yang
  • 18,422
  • 16
  • 68
  • 132
54
votes
2 answers

How does the Android repo manifest repository work?

The Android source is a large hierarchy of git repositories. They are managed by a custom script called repo. Repo determines which git repositories to manage using a manifest.xml. The manifest.xml of Android is hosted in a git repository along with…
Bjarke Freund-Hansen
  • 28,728
  • 25
  • 92
  • 135
41
votes
10 answers

Git, error: remote unpack failed: unable to create temporary object directory - By creating new Branch

I'm trying to create a new branch in my repo. I did this: git branch events git Checkout events That worked. So I changed some files and did: git Status git add --all git commit -m "Commit" That worked well but I tried to push it and that didn't…
Störungs Sucher
  • 439
  • 1
  • 4
  • 8
40
votes
1 answer

What does repo init and repo sync actually do?

I posted this question at Android Enthusiasts but figured it was the wrong place to ask, so I deleted it from there and asking it "again" here. This is such a noob question, and pardon me if it is, but I just want to understand the underlying…
Poly Bug
  • 1,514
  • 1
  • 14
  • 27
19
votes
5 answers

Visual Studio is not recognizing git repo

Upon opening my ASP.NET Core project with an existing git repo in Visual Studio 2022, the git repo is not being loaded. However, opening a freshly cloned repo of this project from GitHub works fine. And opening other projects with git repos work…
Raj Narayanan
  • 2,443
  • 4
  • 24
  • 43
14
votes
2 answers

alternative to git-repo ( aosp repo )

I have recently started to look into android development (aosp) and read about "repo" tool/wrapper that takes care of all the android's sub projects . While I think repo does a fairly good job at what it does, I wanted to know if there are any…
k0n3ru
  • 683
  • 1
  • 8
  • 25
13
votes
6 answers

How to add README.md on github but not have same README.md in home directory while using a bare git repository for managing dotfiles?

I manage my dotfiles using git in a bare repository. See article by Harfang Perch for details on this method. It works great but I'd like to add a README.md to the root of the repository on github. How do I add a README.md to the github repository…
makeyourownmaker
  • 1,558
  • 2
  • 13
  • 33
9
votes
1 answer

How to create a new branch from another repository?

I have a repository (repo1) with a master branch and another repository (repo2) with a master branch. Now I want to create a new branch in repo1 from repo2 with all commits history. My expected result: repo2 ---- | \ master repo1 ---------- | …
Benyamin Jafari
  • 27,880
  • 26
  • 135
  • 150
9
votes
2 answers

Best practices for multiple git repositories

I have around 20 different repositories. Many are independent and compile as libraries but some others have dependencies among them. Dependency resolution and branching is complicated. Suppose that I have a super project that only aggregates all…
betodelrio
  • 308
  • 2
  • 11
8
votes
1 answer

How can I disable CMake in some project folders of a VSCode workspace?

I have a project that uses git-repo so it contains multiple repos. The only way I can find of supporting this in VSCode is to use multi-root workspaces and add each repo as a separate folder within the workspace. Some of these repos use CMake but…
parsley72
  • 8,449
  • 8
  • 65
  • 98
6
votes
1 answer

Deleting branch with repo abandon and git branch -D

I am using git and git-repo for my project. I see when I try to delete my local branch which I am currently on using git command git branch -D branch_name It shows me error which I am expecting, as we can't delete current branch. But if I use repo…
mrutyunjay
  • 6,850
  • 7
  • 25
  • 35
5
votes
3 answers

How do i create a Git Repo from multiple directories

I am working on a asterisk project and would like to put the code in Git for version tracking. Here are the 3 directories that the code is in: Asterisk Dialplans: /etc/asterisk/custom Asterisk AGI Code: /var/lib/asterisk/agi-bin Web Interface:…
Erik Sundberg
  • 81
  • 1
  • 5
5
votes
4 answers

How to download android things OS source code?

I could find git repository/branch for Brillio but no separate for Android things. Is it that it is not open source yet or released for public ?
Anirudh
  • 210
  • 2
  • 12
4
votes
1 answer

What happens when I rename the parent directory of a git repo?

If I have a git repo in a folder named some-folder, and I change it to another-folder, is there going to be any problems?
4
votes
1 answer

repo upload without review (repo push function)

We use the git-repo tool in our project, but we don't use gerrit for code review. So far we used regular git commands to push our changes, but due to the growing amount of repos it would be cool to use the repo upload feature. repo upload requires a…
christopo
  • 176
  • 4
  • 13
1
2 3 4 5 6 7