Off-line deverloper workflow?
Hi,
I have a colleague who has to left our office for three month, but still need to work on the project which is hosted on our in-office git repository. Problem is that our company has firewall, it's not possible or not allowed to access the company LAN outside the building. So I want to ask you expert, can you suggest a best practice of git workflow that suitable to my situation?
Thanks in advance.
-woody
Quoted 6 lines · Woody Wu
I have a colleague who has to left our office for three month, but still need to work on the project which is hosted on our in-office git repository. Problem is that our company has firewall, it's not possible or not allowed to access the company LAN outside the building. So I want to ask you expert, can you suggest a best practice of git workflow that suitable to my situation?
It would help to know a little more about the information flow and the starting conditions.
- Was a clone of code made before leaving your office or does your colleague need to obtain the initial copy too?
- How securely do you need to transfer matters? (email? shared external service like Dropbox/Box.com/etc)
- How frequently do updates need to be made?
- In which direction do commits flow? Just from your colleague back to the office, or are there other updates happening in the office that your colleague needs to pull down to keep in sync?
Without such answers, it's a little hard to suggest more than transmitting either patch files or bundles using any of the following:
email, a shared cloud drive, a shared host out accessible on the net, or sneakernet media (flash-drive or CD/DVD, perhaps via the postal system), or possibly other means.
You may want to read more at
git help format-patch
git help am
git help bundle
-tkc
Quoted 8 lines · Tim Chase
Quoted 6 lines · Woody Wu
I have a colleague who has to left our office for three month, but still need to work on the project which is hosted on our in-office git repository. Problem is that our company has firewall, it's not possible or not allowed to access the company LAN outside the building. So I want to ask you expert, can you suggest a best practice of git workflow that suitable to my situation?
Quoted 5 lines
It would help to know a little more about the information flow and the starting conditions.
- Was a clone of code made before leaving your office or does your colleague need to obtain the initial copy too?
Yes, he had a clone already.
Quoted 3 lines
- How securely do you need to transfer matters? (email? shared external service like Dropbox/Box.com/etc)
I prefer email.
Quoted 3 lines
- How frequently do updates need to be made?
Maybe once several days.
Quoted 3 lines
- In which direction do commits flow? Just from your colleague back to the office, or are there other updates happening in the office that your colleague needs to pull down to keep in sync?
Bi-direction, means my colleague and my in-house team need to modify the code.
Quoted 18 lines
Without such answers, it's a little hard to suggest more than transmitting either patch files or bundles using any of the following:
email, a shared cloud drive, a shared host out accessible on the net, or sneakernet media (flash-drive or CD/DVD, perhaps via the postal system), or possibly other means.You may want to read more at
git help format-patch
git help am
git help bundle-tkc
Signature · 1 line
I can't go back to yesterday - because I was a different person then
Quoted 8 lines · Woody Wu
Hi,
I have a colleague who has to left our office for three month, but still need to work on the project which is hosted on our in-office git repository. Problem is that our company has firewall, it's not possible or not allowed to access the company LAN outside the building. So I want to ask you expert, can you suggest a best practice of git workflow that suitable to my situation?
There's a number of ways that git can communicate with an other git repo. However, communication needs access. You can for example e-mail changes or sen them as files manually with git sneakernet functionality. However those cases would be as bad (or worse) than to open your firewall.
The "best" solution would be a remote repository outside your firewall where your inhouse team and your outhouse developer can share stuff with eachother. However the securitry for this special project will be lower. (Maybe this isn't an important project to you, I don't know). This repository can be at your inhouse-site, at your developer or at some third part. Use ssh with keys and passphrases to communicate.
Keep in mind that a git repository contains all of your source history. Your security for that source code will be whatever security your outhouse developer has. If he fails with his security, there's no meaning with having great inhouse security.
If this isn't an option I would suggest that you establish an encrypted sneakernet (for example over UPS/bike messengers/whatever) between your developer and your office. Or just ask yourself if your security settings really is sane.
Signature · 5 lines
Med vänliga hälsningar Fredrik Gustafsson tel: 0733-608274 e-post: [email protected]
Quoted 9 lines · Woody Wu
Hi,
I have a colleague who has to left our office for three month, but still need to work on the project which is hosted on our in-office git repository. Problem is that our company has firewall, it's not possible or not allowed to access the company LAN outside the building. So I want to ask you expert, can you suggest a best practice of git workflow that suitable to my situation?
Quoted 8 lines
Thanks in advance.
-woody
--
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
For a short time, I had the same issue. We came up using "git bundle" to bundle changes and exchange them via email.
The setup was to work in two separate branches. The roaming developper started a new branch when leaving. After some work, she sent the commits on her branch as a bundle file. The origin merged the branch extracted from the developper's bundle and sent back the bundle of the changes on origin since the last merge.
No doubt that both side need to understand well the workflow of fetch/merge. Bundle files can be encrypted for better security.
Hope this helps.
JN
Quoted 28 lines · Jean-No?l Avila
Quoted 9 lines · Woody Wu
Hi,
I have a colleague who has to left our office for three month, but still need to work on the project which is hosted on our in-office git repository. Problem is that our company has firewall, it's not possible or not allowed to access the company LAN outside the building. So I want to ask you expert, can you suggest a best practice of git workflow that suitable to my situation?
Quoted 8 lines
Thanks in advance.
-woody
--
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlFor a short time, I had the same issue. We came up using "git bundle" to bundle changes and exchange them via email.
The setup was to work in two separate branches. The roaming developper started a new branch when leaving. After some work, she sent the commits on her branch as a bundle file. The origin merged the branch extracted from the developper's bundle and sent back the bundle of the changes on origin since the last merge.
Quoted 4 lines
No doubt that both side need to understand well the workflow of fetch/merge. Bundle files can be encrypted for better security.
Hope this helps.
Many thanks, this method sounds suitable to me. I will go the learn anything about 'bundle'.
Have a nice day!
Quoted 2 lines
JN
Signature · 1 line
I can't go back to yesterday - because I was a different person then
Quoted 11 lines · Jean-Noël Avila
For a short time, I had the same issue. We came up using "git bundle" to bundle changes and exchange them via email.
The setup was to work in two separate branches. The roaming developper started a new branch when leaving. After some work, she sent the commits on her branch as a bundle file. The origin merged the branch extracted from the developper's bundle and sent back the bundle of the changes on origin since the last merge.
No doubt that both side need to understand well the workflow of fetch/merge. Bundle files can be encrypted for better security.
Yes, the above describes exactly what "bundle" was invented for.
Quoted 6 lines · Woody Wu
I have a colleague who has to left our office for three month, but still need to work on the project which is hosted on our in-office git repository. Problem is that our company has firewall, it's not possible or not allowed to access the company LAN outside the building. So I want to ask you expert, can you suggest a best practice of git workflow that suitable to my situation?
If he can set up an SSH server on his machine (outside the company network), then he can set up a mirror repo on his machine, where you can push changes from the office to him, and pull changes from him back into the office. Of course, you will probably need to synchronize this with him, especially if he's travelling and frequently offline or changing IP addresses. Also you need to be able to make outbound SSH connections through the company firewall, but AFAICS that is usually allowed.
His work repo is then a local clone of the mirror repo, and when he's ready to publish some work to you, he pushes it to the mirror repo, and asks you to pull from the mirror repo.
If the source code is not secret, you could even synchronize through GitHub or some other repo hosting service, which would be even easier to set up.
Hope this helps,
...Johan
Quoted 8 lines
Thanks in advance.
-woody
--
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Signature · 2 lines
Johan Herland, <[email protected]> www.herland.net
Quoted 8 lines · Johan Herland
Quoted 6 lines · Woody Wu
I have a colleague who has to left our office for three month, but still need to work on the project which is hosted on our in-office git repository. Problem is that our company has firewall, it's not possible or not allowed to access the company LAN outside the building. So I want to ask you expert, can you suggest a best practice of git workflow that suitable to my situation?
Quoted 8 lines
If he can set up an SSH server on his machine (outside the company network), then he can set up a mirror repo on his machine, where you can push changes from the office to him, and pull changes from him back into the office. Of course, you will probably need to synchronize this with him, especially if he's travelling and frequently offline or changing IP addresses. Also you need to be able to make outbound SSH connections through the company firewall, but AFAICS that is usually allowed.
Outbound ssh to me is not a problem, but inbound ssh to him may be a big problem. You know hotel firewall or some home ADSL don't allow that.
Quoted 29 lines
His work repo is then a local clone of the mirror repo, and when he's ready to publish some work to you, he pushes it to the mirror repo, and asks you to pull from the mirror repo.
If the source code is not secret, you could even synchronize through GitHub or some other repo hosting service, which would be even easier to set up.
Hope this helps,
...Johan
Quoted 8 lines
Thanks in advance.
-woody
--
To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.htmlSignature · 2 lines
Johan Herland, <[email protected]> www.herland.net
Signature · 1 line
I can't go back to yesterday - because I was a different person then
Quoted 18 lines · Woody Wu
Quoted 8 lines · Johan Herland
Quoted 6 lines · Woody Wu
I have a colleague who has to left our office for three month, but still need to work on the project which is hosted on our in-office git repository. Problem is that our company has firewall, it's not possible or not allowed to access the company LAN outside the building. So I want to ask you expert, can you suggest a best practice of git workflow that suitable to my situation?
Quoted 8 lines
If he can set up an SSH server on his machine (outside the company network), then he can set up a mirror repo on his machine, where you can push changes from the office to him, and pull changes from him back into the office. Of course, you will probably need to synchronize this with him, especially if he's travelling and frequently offline or changing IP addresses. Also you need to be able to make outbound SSH connections through the company firewall, but AFAICS that is usually allowed.
Quoted 2 lines
Outbound ssh to me is not a problem, but inbound ssh to him may be a big problem. You know hotel firewall or some home ADSL don't allow that.
In that case, you will need either:
A) A third machine, accessible from both you and him (preferably over SSH), where you can store the repo. I don't know what your company infrastructure looks like, but maybe it's possible to setup a server in the DMZ outside your company firewall?
B) Use a more manual mechanism like emailing bundles (as explained by Jean-Noël).
...Johan
Signature · 2 lines
Johan Herland, <[email protected]> www.herland.net