On Thu, Feb 3, 2011 at 6:21 AM, Dawit A <ada...@kde.org> wrote: > git config --global push.default tracking > > and use the -t or --track option when creating your branches (branch > or checkout -b). This way you can 'git push' (no arguments) in the > current tracked branch without accidentally pushing your changes in > other branches.
I think this is the default. When I do "git checkout -b somework origin/somework" here, it automatically sets up somework to track origin/somework. Push by default only operates on the tracking branch, i.e. push --all needs to be specified manually. Greetings Stefan