Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Regain the control of my repository

sijieh December 6, 2019

Hi,

Recently, my MacBook got wet and it was sent to get fixed. I guess they replace everything in it. Anyway, after I have it back and try to push my code to my repo, when I type

git push <remote> <branch_name>

the terminal just hangs there, everything gets stuck, no output, no response, no nothing. I already added my new SSH key to my account, and I also tried

git branch

to see which branch I am on, and it did show all my branches. I have no idea how to fix it.

So could anyone help me to regain the control of my repo?  Thanks a lot!

1 answer

1 accepted

0 votes
Answer accepted
Hana Kučerová
Community Champion
December 7, 2019

Hi @sijieh

is your clone of repository correctly connected to the remote server? (Are there any remote connections saved?) You can check this using following command:

git remote -v
sijieh December 7, 2019

Hi, @Hana Kučerová 

This is what I got

origin git@bitbucket.org:<my_name>/<repo_name>.git (fetch)
origin git@bitbucket.org:<my_name>/<repo_name>.git (push)

I am not familiar what this implies.

Hana Kučerová
Community Champion
December 19, 2019

Hi @sijieh ,

it looks good, basically it means, that your local repository is still connected to the remote repository. Did you try to perform another operations like pull?

The described behaviour is very strange and it looks like that something went wrong very badly - maybe there is still some problem with your hardware?

I don't know, if you had made any modifications to your code, that haven't been commited yet, but it seems to me, that it will be the best solution to create the fresh copy of the remote repository (git clone ...). Is it possible to test it using another computer?

sijieh December 19, 2019

Hi @Hana Kučerová 

Actually you are right, my local repo is still connected to the remote, my last push got delayed and the commit did not show up in the website immediately, but now it's all good. It's quite wired though.

Anyway, thanks for your help!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events