[Redmi Note Q&A, Help & Troubleshooting] shubhamkarande:
Hey, I have finally managed to synced the complete source :highfive: but unable to build a working tree due to some stupid errors.

Fetching projects: 99% (527/532) Fetching project android_hardware_qcom_media
Fetching project android_hardware_qcom_media
Fetching project android_hardware_qcom_media
Fetching projects: 100% (532/532), done.
Syncing work tree: 2% (11/532) error: Your local changes to the following files would be overwritten by checkout:
admin/AppRestrictionEnforcer/Application/src/main/res/layout/fragment_setup_profile.xml
admin/AppRestrictionEnforcer/Application/tests/src/com/example/android/apprestrictionenforcer/tests/SampleTests.java
admin/BasicManagedProfile/Application/src/main/res/layout/fragment_setup_profile.xml
background/JobScheduler/Application/tests/AndroidManifest.xml
background/JobScheduler/Application/tests/src/com/example/android/jobscheduler/tests/SampleTests.java
build.gradle
connectivity/network/BasicNetworking/Application/tests/src/com/example/android/basicnetworking/tests/SampleTests.java
connectivity/network/NetworkConnect/Application/tests/src/com/example/android/networkconnect/tests/SampleTests.java
connectivity/network/NetworkConnect/template-params.xml
connectivity/nfc/BeamLargeFiles/Application/tests/AndroidManifest.xml
connectivity/nfc/BeamLargeFiles/build.gradle
connectivity/nfc/CardEmulation/Application/tests/AndroidManifest.xml
connectivity/nfc/CardReader/Application/tests/AndroidManifest.xml
connectivity/sync/BasicSyncAdapter/Application/src/main/java/com/example/android/basicsyncadapter/SyncAdapter.java
connectivity/sync/BasicSyncAdapter/Application/tests/src/com/example/android/basicsyncadapter/tests/SampleTests.java
content/WidgetData/Application/tests/AndroidManifest.xml
content/contacts/BasicContactables/Application/tests/src/com/example/android/basiccontactables/tests/SampleTests.java
content/documentsUi/StorageClient/Application/src/main/java/com/example/android/storageclient/StorageClientFragment.java
content/documentsUi/StorageClient/Application/tests/src/com/example/android/storageclient/tests/SampleTests.java
content/documentsUi/StorageClient/README.md
content/documentsUi/StorageClient/template-params.xml
media/BasicMediaRouter/Application/tests/src/com/example/android/basicmediarouter/tests/SampleTests.java
media/Camera2Basic/Application/tests/AndroidManifest.xml
media/Camera2Basic/Application/tests/src/com/example/android/camera2basic/tests/SampleTests.java
media/HdrViewfinder/template-params.xml
media/MediaBrowserService/Application/src/main/AndroidManifest.xml
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/MediaNotificationManager.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/MusicService.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/PackageValidator.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/model/MusicProvider.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/BitmapHelper.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/LogHelper.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/MediaIDHelper.java
media/MediaBrowserService/Application/src/main/java/com/example/android/mediabrowserservice/utils/QueueHelper.java
media/MediaBrowserService/Application/src/main/res/drawable-hdpi/ic_notification.png
media/MediaBrowserService/Application/src/main/res/values/strings.xml
media/MediaBrowserService/Application/src/main/res/values/styles.xml
media/MediaBrowserService/template-params.xml
media/MediaRouter/Application/tests/AndroidManifest.xml
media/MediaRouter/Application/tests/src/com/example/android/mediarouter/tests/SampleTests.java
notification/BasicNotifications/Application/tests/src/com/example/android/basicnotifications/tests/SampleTests.java
notification/LNotifications/Application/tests/AndroidManifest.xml
notification/MessagingService/template-params.xml
renderScript/BasicRenderScript/Application/tests/src/com/example/android/basicrenderscript/tests/SampleTests.java
renderScript/BasicRenderScript/template-params.xml
renderScript/RenderScriptIntrinsic/Application/tests/src/com/example/android/renderscriptintrinsic/tests/SampleTests.ja
error: The following untracked working tree files would be overwritten by checkout:
admin/DeviceOwner/Application/.gitignore
admin/DeviceOwner/Application/README-fragmentview.txt
admin/DeviceOwner/Application/README-singleview.txt
admin/DeviceOwner/Application/proguard-project.txt
admin/DeviceOwner/Application/src/main/AndroidManifest.xml
admin/DeviceOwner/Application/src/main/java/com/example/android/deviceowner/DeviceOwnerFragment.java
admin/DeviceOwner/Application/src/main/java/com/example/android/deviceowner/DeviceOwnerReceiver.java
admin/DeviceOwner/Application/src/main/java/com/example/android/deviceowner/InstructionFragment.java
admin/DeviceOwner/Application/src/main/java/com/example/android/deviceowner/MainActivity.java
admin/DeviceOwner/Application/src/main/res/drawable-hdpi/ic_launcher.png
admin/DeviceOwner/Application/src/main/res/drawable-mdpi/ic_launcher.png
admin/DeviceOwner/Application/src/main/res/drawable-xhdpi/ic_launcher.png
admin/DeviceOwner/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
admin/DeviceOwner/Application/src/main/res/layout/activity_main_real.xml
admin/DeviceOwner/Application/src/main/res/layout/fragment_device_owner.xml
admin/DeviceOwner/Application/src/main/res/layout/fragment_instruction.xml
admin/DeviceOwner/Application/src/main/res/values/strings.xml
admin/DeviceOwner/Application/src/main/res/xml/device_owner_receiver.xml
admin/DeviceOwner/build.gradle
admin/DeviceOwner/buildSrc/build.gradle
admin/DeviceOwner/gradle/wrapper/gradle-wrapper.jar
admin/DeviceOwner/gradle/wrapper/gradle-wrapper.properties
admin/DeviceOwner/gradlew
admin/DeviceOwner/gradlew.bat
admin/DeviceOwner/screenshots/1-main.png
admin/DeviceOwner/screenshots/icon-web.png
admin/DeviceOwner/settings.gradle
admin/DeviceOwner/template-params.xml
admin/NfcProvisioning/Application/.gitignore
admin/NfcProvisioning/Application/README-fragmentview.txt
admin/NfcProvisioning/Application/README-singleview.txt
admin/NfcProvisioning/Application/proguard-project.txt
admin/NfcProvisioning/Application/src/main/AndroidManifest.xml
admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/NfcProvisioningFragment.java
admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/ProvisioningValuesLoader.java
admin/NfcProvisioning/Application/src/main/java/com/example/android/nfcprovisioning/TextWatcherWrapper.java
admin/NfcProvisioning/Application/src/main/res/drawable-hdpi/ic_launcher.png
admin/NfcProvisioning/Application/src/main/res/drawable-mdpi/ic_launcher.png
admin/NfcProvisioning/Application/src/main/res/drawable-xhdpi/ic_launcher.png
admin/NfcProvisioning/Application/src/main/res/drawable-xxhdpi/ic_launcher.png
admin/NfcProvisioning/Application/src/main/res/layout/fragment_nfc_provisioning.xml
admin/NfcProvisioning/Application/src/main/res/values/strings.xml
admin/NfcProvisioning/Application/tests/src/com/example/android/nfcprovisioning/tests/SampleTests.java
admin/NfcProvisioning/build.gradle
admin/NfcProvisioning/buildSrc/build.gradle
admin/NfcProvisioning/gradle/wrapper/gradle-wrapper.jar
admin/NfcProvisioning/gradle/wrapper/gradle-wrapper.properties
admin/NfcProvisioning/gradlew
admin/NfcProvisioning/gradlew.bat
admin/NfcProvisioning/nfcprovisioning.txt
admin/NfcProvisioning/screenshots/1-main.png
admin/NfcProvisioning/screenshots/icon-web.png
admin/NfcProvisioning/settings.gradle
admin/NfcProvisioning/template-params.xml
connectivity/bluetooth/BluetoothAdvertisements/Application/.gitignore
connectivity/bluetooth/BluetoothAdvertisements/Application/proguard-project.txt
connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/AndroidManifest.xml
connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/AdvertiserFragment.java
connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/bluetoothadvertisements/Constants.java
connectivity/bluetooth/BluetoothAdvertisements/Application/src/main/java/com/example/android/
Aborting
Syncing work tree: 6% (32/532) error: The following untracked working tree files would be overwritten by checkout:
src/compatibility/4.4/android-4.4-cdd.xhtml
src/compatibility/5.0/android-5.0-cdd.html
Please move or remove them before you can switch branches.
Aborting
Syncing work tree: 100% (532/532), done.

developers/samples/android/: discarding 23 commits
docs/source.android.com/: discarding 2 commits
error: developers/samples/android/: platform/developers/samples/android checkout 5aa1d659c86cf7851d85d33108e4c761a02cf817
error: docs/source.android.com/: platform/docs/source.android.com checkout cfd98ed5e9570d76b5a50d77e51318211777dcfb

What should I do? :/