Flame-Tree
Flame-Tree

Reputation: 19

Git pull on remote repo

  1. I have cloned a git repository(which is in our local server) in my machine.
  2. I want to sync the latest changes from remote repository into our local server first and then on to my machine; Because server repository will be used by other colleagues as well.
    1. I can either directly log-in to the server and do git pull there, but it is restricted as the command level access to the server is restricted now.
    2. Can I do the step 1 activity from my local machine.

Upvotes: 1

Views: 606

Answers (2)

Dolanor
Dolanor

Reputation: 820

I think you could do it from your machine if you can have access to a Windows/Samba share on this local server from your own machine. You would be able to run git inside that share from your machine without a hassle, except if you don't have a direct access to the remote repository from your machine.

Or you could do like CharlesB said, which is more "gitty". Fetch the remote from your local machine, then push to the local server. For the other co-worker, they won't see any differences.

Upvotes: 1

CharlesB
CharlesB

Reputation: 90496

You can't pull from the server if your don't log into it. However you can pull from your local repo, and push back to the server.

Upvotes: 1

Related Questions