Just found the solution for adding multiple accounts to Bitbucket. The reason why it is not so straight forward is because one SSH key only can link up to one account. So if there is more than one account the method will be slightly different.
Here is how the step to resolve it.
After id_rsa and id_rsa.pub is used to assigned account A. For account B, I need to create another set of public and private key.
$ssh-keygen -t dsa -f ~/.ssh/newaccB -C "<your email address>"
$chmod 600 ~/.ssh/newaccB*
After that you need to go to ~/.ssh/config to give ssh client further instruction when connect to the same bitbucket.org server but knowing when to use which private key.
So, after setting up when you want to use the account B key, you need to change the url to something such as below:
$git clone git@bitbucket-accountB:<username>/<project name>.git
For account A, you still can use the original ssh url to do so.
If you are using SmartGit, better to choose the System SSH in your preference. If not, you will still getting error.
PS: ssh-add ~/.ssh/newaccB might be adding behind after modify ~/.ssh/config
I notice kernel.org is down, but I didn’t notice that android source code was hosted on kernel.org too. So to fix the issue is to link to an alternative new android mirror.
$repo init -you git://codeaurora.org/platform/manifest.git
You can check out the gitweb through here.
Alternatively, another link is from CyanogenMod
$repo init -u git://github.com/CyanogenMod/android.git -b gingerbread
Check here for using Linaro.org. http://www.linaro.org/linaro-blog/2011/09/15/%EF%BB%BFbuilding-a-linaro-android-build-from-source/
I thought Git should be Linux user friendly. However the set up steps seem to be much complicated then usual. Even I want to install Git through Ubuntu Software Center, all I’m getting are some errors on downloading the unauthorized source?!
So since that, I only can build it through the source code.
- Download Git source code from http://kernel.org/pub/software/scm/git/git-18.104.22.168.tar.bz2
- Unzip it
- We need this zliblg to build the source code later
$ sudo make install
- sudo apt-get install zlib1g-dev” in terminal
And done. You can check it by typing $ git –-version.
After that all the source code can be removed.
Everyone using Git didn’t seem to have a proper official work flow. However, so far, I have been following this work flow, which I think the best and most systematic and it is applicable to all kind of project.
Original Link: http://nvie.com/posts/a-successful-git-branching-model/
Simple and clear for Git beginner. I might want to include this into a tutorial for company new staff!