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:

65 questions
86
votes
5 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
  • 15,982
  • 13
  • 62
  • 126
49
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
  • 23,930
  • 22
  • 87
  • 133
32
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,324
  • 1
  • 13
  • 27
19
votes
7 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
  • 219
  • 1
  • 2
  • 8
11
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
  • 593
  • 1
  • 5
  • 24
8
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
  • 198
  • 1
  • 11
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
  • 4,840
  • 5
  • 22
  • 34
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
  • 220
  • 2
  • 12
4
votes
5 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,164
  • 1
  • 9
  • 29
4
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
  • 15,536
  • 14
  • 81
  • 116
4
votes
1 answer

Use Git to synchronize one project from a "Repo" repository

Some people in my company use Repo to manage multiple repositories. I need to read (not alter/commit) some of this content. I'm hoping to avoid installing Repo, and just use Git. Here are the instructions provided for getting the repository I care…
Phrogz
  • 271,922
  • 98
  • 616
  • 693
3
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:…
3
votes
0 answers

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
  • 6,932
  • 8
  • 54
  • 78
3
votes
2 answers

"repo init -b branch; repo status" does not show you're on a branch

I am struggling to understand repo and git. I have created a branched manifest.xml file that specifies Everything works fine but when the repo sync is complete there is no indication that each project is on…
acurtis
  • 131
  • 2
  • 7
3
votes
1 answer

Source control confusion

Im pretty new to android development although Ive been working on kernel for some time. The questions is: Ive made changes across modules in the kernel and from the top level directory of kernel, If I do git diff or git status, it shows all the…
1
2 3 4 5