Comments (4)
Hi @msa2,
Actually, what I do after repo init
/repo sync
is just perform set up of local master branch to track remote branch master from linaro-swg
/optee
(choose proper remote, it's name differs in different reps) for repositories I'm going to work with. After this you can use simple git pull
:
$ git checkout -b master optee/master
$ git pull
from build.
That is and has been the behavior of repo
since the beginning from what I remember. The reason for that is that repo under the hood just checks out the commits (instead of branches).
Or, do you have a "recipe" for working with these gits, when you have local mods for them?
For updating my entire forest in one go, I do this (I tend to do that on daily basis since it resolves eventual inter-dependencies between gits)
# -d here, will detach from your current branch in a git and force it
# back to what is stated in manifest
# -j3 is just to run 3 jobs in parallel
$ repo sync -j3 -d
In some rare cases I don't use -d
and then it will keep using my own branches that I've checked out and not the ones stated in the manifest (xml) file. But it will also try to rebase you current branch, which might not be what you want, so ... word of warning and again, that is why I most often just -d
.
If do work in a git, then I just simply check it out as a new branch
$ git checkout -b my_branch
# or if I strictly want to use a certain remote/branch as base for my local branch
$ git checkout -b mybranch optee/master
# or ... if I want to use the same name as the remote and at the same time track it.
$ git checkout -t optee/master
From there you can simply use $ git pull
if you want to. Personally I most of update in two steps, 1) update the remote(s) and then 2) manually rebase.
$ git remote update
Then I rebase manually if needed
# Here I'm on a local branch
$ git rebase optee/master
If you really would like to have a branch in all gits after initializing repo, then you can do:
$ repo start <mybranchname> --all
And "swish" you'll have and be on the <mybranchname>
in all gits.
In fact a lot of stuff can be done directly with repo. Personally besides checking out the entire forest and syncing it using repo, I tend to do everything else directly in each git with git commands. That seems to work for me, it's not very often I get into problems with either repo nor git.
from build.
Thank you. I think I will now use the simple git checkout -b master optee/master
approach.
The repo sync ...
has a problem that if I'm working on something, I don't want to be distracted by a need to fix some merge conflicts in other parts of the system.
from build.
We're closing this issue since the question has been answered. If you however feel that you have additional questions or still thinks this is an issue, please feel free to re-open the issue again.
from build.
Related Issues (20)
- Error building op-tee for QEMUv8 HOT 6
- Using hikey620's uart0 to console NW world HOT 1
- Issue with building image - v3.22.0 on Raspberry Pi 3B+ HOT 1
- Modify the linux kernel but not working HOT 3
- Failure to run with manifest qemu_v8.xml and SPMC_AT_EL=2 HOT 2
- AMD Versal ACAP - do not update to BSP 2023.1 HOT 4
- cannot find -lpci error while cross compiling for LS1043 HOT 1
- Who can help me!make -f qemu.mk all and get a error :ccache: error: Exec format error HOT 5
- Openssl doesn't get built in when build called from qemu.mk HOT 2
- RPI3b:-sh: apt-get: not found HOT 3
- Does the build support the config XEN_BOOT=y && SPCM_AT_EL=2 on qemu_v8 HOT 5
- Rust error "could not rename downloaded file" HOT 3
- Rust error: "failed to install component: 'rust-std-aarch64-unknown-linux-gnu', detected conflict" HOT 2
- Legacy BR options in tooclhain build HOT 6
- image load on qemu HOT 2
- optee_test_ext: /bin/bash: Argument list too long HOT 3
- Build fails on aarch64 hosts HOT 25
- toolchain.mk: Rust toolchain is not downloaded on aarch64 hosts HOT 1
- C++ tests fail on aarch64 hosts HOT 2
- Compilation of Rust examples fails on aarch64 hosts HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from build.