Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ayekoto's avatar

push and pull from github for same user and different computer, How?

Hi everyone, I already have the current project am working on on bitbucket, But its a pity my personal computer is not available and I want to use another computer to continue my project.

I know I can clone the project but I want it possible that after working on it, I also push it back to the repository.

So the challenge now is, I think that's what git pull is for but how to go about working with git when its the same user(me) pushing and pulling from different systems is my challenge.

Pardon me, I never used git pull before.

So pls how will I overcome this challenge so I can continue practicing, and update my repository while my personal computer is not available ?

Thanks

0 likes
9 replies
bashy's avatar

All git pull does is fetch then merges. You can push an update from your personal computer and then go to work and pull the changes to a new computer (or git clone if you haven't got the files).

Which part are you having trouble with?

ayekoto's avatar

Firstly challenge is pulling it down to another system, I will be able to push when done, Second challenge is pulling the updated code from my repository into my main working PC

ayekoto's avatar

OK meaning since I don't have the code at all on the guest computer, I first have to clone..? Then work on the project, Then push, Then when on my personal computer, git pull will just get the updated?

martinbean's avatar

@ayekoto You need to upload your public keys from each computer you want to work from. I do this as I have a MacBook and two iMacs that I work across. You can then push and pull, and all commits will be authored by you.

bashy's avatar
bashy
Best Answer
Level 65
  1. git clone git@bitbucket.org:name/repo.git and if you've setup your SSH key on both machines you can commit/push once finished.
  2. Just do git pull when you get on your main PC.

All you have to do is push/pull code and you can work on multiple machines.

ayekoto's avatar

Yea, my main question has been answered, and I appreciate you two. Thanks

Please or to participate in this conversation.