I'd like to push create a branch, but I'm unable to understand what I'm doing wrong. I've never used git (only svn and hg, but never with a remote hosting service like bitbucket). Thus, it's likely that I'm simply misunderstanding how I'm supposed to work.

Any help is appreciated.

Marco

1) I have a working bitbucket account

2) after stumbling across this cURL bug (I have cURL
7.28)

https://confluence.atlassian.com/display/BBKB/fatal%3A+Authentication+failed

I switched to ssh.
Thus, I have a key ~/.ssh/bitbucketid
and my ~/.ssh/config reads

Host bitbucketid
  HostName bitbucket.org
  IdentityFile /home/marco/.ssh/bitbucketid

I've uploaded my public key key to bitbucket, and loaded my key in ssh-agent:

marco@pao:~/T/dolfin (morandini/fix-issue-86)> ssh-add -l
2048 5f:c4:0d:a0:1b:9a:6a:a1:ec:93:22:1b:86:98:60:20 /home/marco/.ssh/bitbucketid (RSA)


3) I'm following the workflow of

https://bitbucket.org/fenics-project/dolfin/wiki/Git%20cookbook%20for%20FEniCS%20developers

usecase "Fix an issue (bug)"

4) should a fork before branching?

I'm pasting below a typical command line session, up to the error

-------------------------
marco@pao:~/T> git clone git@bitbucketid:fenics-project/dolfin.git
Cloning into 'dolfin'...
remote: Counting objects: 158044, done.
remote: Compressing objects: 100% (33744/33744), done.
remote: Total 158044 (delta 122543), reused 156493 (delta 121294)
Receiving objects: 100% (158044/158044), 20.18 MiB | 4.39 MiB/s, done.
Resolving deltas: 100% (122543/122543), done.
marco@pao:~/T> cd dolfin/
marco@pao:~/T/dolfin (master=)> git checkout -b morandini/fix-issue-86
Switched to a new branch 'morandini/fix-issue-86'
marco@pao:~/T/dolfin (morandini/fix-issue-86)> cp ../../dolfin-pippo/dolfin/la/PETScMatrix.cpp ../../dolfin-pippo/dolfin/la/SparsityPattern.cpp dolfin/la/ marco@pao:~/T/dolfin (morandini/fix-issue-86 *)> git add dolfin/la/PETScMatrix.cpp dolfin/la/SparsityPattern.cpp marco@pao:~/T/dolfin (morandini/fix-issue-86 +)> git commit -m "Fix issue 86: dolfin::SparsityPattern::apply" [morandini/fix-issue-86 76faf4d] Fix issue 86: dolfin::SparsityPattern::apply
 2 files changed, 4 insertions(+), 2 deletions(-)
marco@pao:~/T/dolfin (morandini/fix-issue-86)> git push origin morandini/fix-issue-86
conq: repository access denied.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
-------------------------

_______________________________________________
fenics-support mailing list
[email protected]
http://fenicsproject.org/mailman/listinfo/fenics-support

Reply via email to