I am new to Git, so please excuse if this is a dumb question.
In our organization we use Git as our repository and I can do git checkin
, checkout
, pull
, ... from my office machines.
Our Git repository URL is something like this (but I can;t paste the original due to restrictions): git@github.com:test/hkin.git
My question is: Can I clone
/checkout
/fetch
the above repository into my personal machine? (I have the git username and password)
Remember that Git does not do any authentication itself (through local or git daemon protocols).
You need a listening service (https or ssh) to authenticate, and then pass along your git request to git itself afterwards (along with your id), or to an authorization layer like gitolite (which, in turn, calls or does not call git, authorizing or denying your request).
So it is not so much a git problem than more of a WAN (Wide Area Network) access issue.
Usually, corporation networks are closed to the outside world, and allow external connections only through VPN (Virtual Private Network), accessed first with a SecurID tokens.
![](https://www.manongdao.com/static/images/pcload.jpg)
Then you enter your usual login/password in order to open a connection on (for instance) a Citrix farm.
![](https://www.manongdao.com/static/images/pcload.jpg)
Then you can, if authorized, mstsc (remote desktop connection) to your own workstation.
From there, you have the proper environment to do your git operations.
This is only one example of external access management, but I have often seen this kind of setup in large corporations.
Depends on whether your personal machine is able to connect to the machine that your Git repository is hosted on. (If your office machines talk to the Git repository's machine via an internal network, your personal home computer might not be able to reach it.)