I have AOSP code base in my system and i want take the backup of entire codebase to my external drive and I dont want to do repo sync or anything. I tried copying the folders manually but when I tried to do git log in my destination folder it shows as fatal and I feel that the git has been corrupted during manual copy. So is there any way we could do this by git clone for all the repositories or is there any other way?
How to clone entire AOSP codebase locally
994 Views Asked by Abhishek jr At
2
There are 2 best solutions below
0
Farhan Ar Rafi
On
Why don't you try to copy just the .repo folder into the external drive and whenever you need to build another system, just copy it back into another folder and run repo sync there?
If you are worried about your changes, then you should commit your changes, make a patch file, and keep a backup for that also. Using the patch file, you will be able to restore your changes on the new repo.
Related Questions in GIT
- problem to push files on a repository git
- diff3 output in git conflict style, including mergeable hunks
- Git Not In Sync with Local Branch
- Setting up the version control of .dotfiles while the .config is connected to a forked repo
- How to fix overriding the main branch in Git?
- I can't add text to "Message" in VS Code when committing to Git
- How can i redirect pull request from main branch to another branch
- Xcode commits (possibly outside of any branch) disappeared, how to get them back?
- Git/TortoiseGit : how to apply ONLY the changes from ONE commit from branch A, to branch B?
- How can I reintroduce username an password on git using fedora?
- GIT SKIP EMPTY DIRECTORIES
- Git smudge run once per checkout or per commit?
- I can't find ~/.profile or ~/.bashrc in C:/Users/<user>/.ssh folder
- Set environment variable during push for GitHub Actions
- Android WebRTC compile
Related Questions in BUILD
- Build issue in my STM32-NUCLEO project using the Eclipse IDE
- Module not found when building flutter app for IOS
- Why am I getting this error ? error CS0103: The name 'EnhancedStackTrace' does not exist in the current context
- Gradle 8.7 cannot find installed JDK 22 in IntelliJ
- Build LLVM, Clang and Libfuzzer
- when I open a ktor project, error Cannot invoke "java.nio.file.Path.toString()" because the return value of "java.nio.file.Path.getFileName()" is null
- Cannot make Django run the frontend from Vite's build ("was blocked because of a disallowed MIME type (“text/html”)")
- Distorted CSS after Build process
- how to build nextjs app unable to build and deploy
- How to build custom mediapipe python model i.e. adding flow_limiter_calculator to face_landmark_front_cpu.binarypb
- Assets not showing after build process in Vite and React
- "Config.guess failed to determine the host type" when trying build binutils-2.7 with Cygwin
- The assembled Python application does not launch
- Why rebuild module does not recompile dependency module, but build module does in IntelliJ Idea?
- Gitlab pipeline stuck with nx cloud issue
Related Questions in ANDROID-SOURCE
- How to build aosp 6.0 img and run emulator with the img on mac m1 device?
- Where is the ExecuteMterpImpl function in aosp 13?
- Best hardware to build android os platform code Version 15
- How do I convert the update.img artifact from the Orange Pi 4 LTS Android build to an image I can flash on a microSD card?
- Slide the Android Automotive HVAC up by pressing a button
- AOSP user variant ROM for pixels
- Motorola G40 Fusion Display Issue: Power Button Not Turning On Display in Android 14 Custom ROMs
- NanoHTTPD Timeout Error while Uploading File to the Android Device
- How do I add Aosp-Node-Prebuilts to the Orange Pi 4 LTS Android 8.1 build?
- AOSP cuttlefish: avoid booting in recovery mode loop
- How do I create an Android make file to merge a glibc based root filesystem into to the AOSP filesystem?
- Fluoride stack support for VS commands
- AOSP Build Error: instances are in the device manifest but not specified in framework compatibility matrix:
- AOSP Audio Echo Cancellation with libaudiopreprocessing
- aosp build got memory corruption
Related Questions in REPO
- Post-Job Checkout Hanging in Azure DevOps Pipelines
- AOSP mirroring into local gerrit
- CI/CD set up for one ADF environment having multiple project pipelines
- Why do I get this error when Importing a flutter app repo as a dependency?
- Why can I not import nfc_manager repo as a dependency into my flutter app?
- AOSP repo sync error , invalid index-pack output
- Webflow development: How to integrate (global) custom JS code for best performance?
- ADF Publish Fail - Invalid references or dependencies found
- HTTPS request exception on git push to GitHub
- Can maintainers see my activity on Gitlab? Which roles are able to do this?
- Google repo: Permission denied (publickey)
- Login command in docker when using gmail account
- Is there a way to show case the users that used my github template?
- fatal: not a git repository: libbcc.git
- Failed to update from GitHub
Related Questions in ANDROID-ROM
- Can't flash stock rom - cache - partition table issue
- Creating a Custom Android Build for an Embedded Device without Permissions Request Screen
- Building Android: Build error CtsAppBindingHostTestCases.LOCAL_TARGET_REQUIRED_MODULES : illegal value CtsAppBindingService1 : not a device module
- Building Android: lunch warning about building a 32-bit-app-only product on a 64-bit device
- where to put files not cloned by git in a repo?
- What's the branch/tag for emualtor rom from google
- shutting down android functionality like qs tiles, volume panel and navigation's
- Building AOSP based rom, error remove_packages already defined
- nexus 5x stuck on Google screen after replacing one of the system shared libraries
- How to open any Android app or Activity in a reduced screen size?
- Is a good practice to extend a Room Entity and use the same DAO and Repository?
- Deploy Android Application with Initial SQLite database
- Android AOSP build error with third party lib like Firebase - "appname" depends on undefined module "com.google.firebase_firebase-core"
- Is there any way to dump physical ROM memory in android
- Permission Denied while sending <protected-broadcast> from an app in /System/app
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
It is better to:
git bundlein order to generate one file (representing the full repository with its history)