1

I have seen a bitbucket Repos which I have private access. I fork (or clone the repos and got the access to the code).

in my own copy I made changes. Later I delete my own copy (I thing I will publish it to master directory).

I thing I have submit the changes to my own directories. Now problem is how I can submit that changes to the main repos.

Now when I right click on git commit -> Master then It's not show me any files. I have seen that the files in main repos are same as old and not have any changes I have done.

now someone help me then how I can commit the changes to the main repos of someone else. the repos of mine I have deleted on server so I have no idea how the main repos take my changes.

Charles
  • 50,943
  • 13
  • 104
  • 142
user1814971
  • 167
  • 1
  • 2
  • 14

1 Answers1

1

If your local clone refers to your BitBucket fork (that you just deleted), you can change your remote address named 'origin' to point it back to your main BitBucket repo.

git remote set-url origin git@bitbucket.org:myusername/myrepo.git
# or (https address)
git remote set-url origin https://bitbucket.org/myusername/myrepo

(see also, for https address, Is there a way to not have Bitbucket ask for my password every time when doing remote Mercurial operations? )

See for more Change the URI (URL) for a remote Git repository

You can then push to origin, meaning this time your first private BitBucket repo.


The OP comments:

I check all setting again and found that I have used the location which is relate to main repos.

I have tried it Git > sync > push all changes and it's work fine

Community
  • 1
  • 1
VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • I check all setting again and found that I have used the location which is relate to main repos. I have tried it Git > sync > push all changes and it's work fine. – user1814971 Dec 12 '12 at 08:27
  • @user1814971 Excellent. I have included your comment in the answer for more visibility. – VonC Dec 12 '12 at 08:55