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!
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.