0

I have some code changes on my remote Ubuntu server. I haven't made any pull/push requests from bitbucket since very long. Now I need all my code that is on my remote server in my bitbucker repo. How do I push this? If I run git pull on my server, I think everything will be messed up. So I need commands to reverse pull to my bitbucket, so my server actually stands for "bitbucket" and the bitbucker stands for as my server. Hope you got it. Sorry for badly organized question.

12
  • Are you looking for git push, the opposite of pull/fetch? Commented Oct 5, 2022 at 21:32
  • 1
    So which part is the question? Connecting via terminal? Typing the command? If the command is git push? How to link the repos (they must already be linked, how else would have the code on the server been updated in the past)? Commented Oct 5, 2022 at 21:36
  • 1
    HTML, so I ask if your question is "do I need to type 'git push' to push my commits"? And your reply is "no, that's not my question, I want to know which command I need to type to push my commits"? Maybe I'm misunderstanding something Commented Oct 5, 2022 at 21:40
  • 1
    And what would your local repo on your desktop PC be? It's a cloned repo too and you push from it to BitBucket every day. Every repository "clone" in Git is equivalent (just like a real clone). You can exchange one for any other and will not notice a difference. And as long as there's a network connection between two clones, you can synchronize (i.e. fetch and push) them. Commented Oct 5, 2022 at 21:53
  • 1
    @MammadaliMammadaliyev not posting a new answer to a question that has already been answered several times. Commented Oct 6, 2022 at 6:25

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.