Is `Keep Remote Directory up to Date` option for the .git folder OK?

Advertisement

kanlukasz
Joined:
Posts:
20

Is `Keep Remote Directory up to Date` option for the .git folder OK?

Hello,

I would like to ask about the workflow.

I work with a project with the "Keep Remote Directory up to Date" WinSCP option. This gives me a good solution for working with local files using my favorite tools and the effect of working directly with remote files.

If we talk about favorite tools i mean GIT, and here is the question.
Is `Keep Remote Directory up to Date` option for the .git folder OK?

Is there any unusual risk associated with `.git` folder synchronization?
Or maybe do you have any better idea?

I am looking for the best way to work with git repository in VSCode & with files in WinSCP. That why i ask about it.

I'll be thankful for any advice

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: Is `Keep Remote Directory up to Date` option for the .git folder OK?

It seems like an overkill for me. Shouldn't you use git push over SSH git remote, instead of WinSCP?

Reply with quote

kanlukasz
Joined:
Posts:
20

Yes, I know that sounds ridiculous.
I'm just looking for a method that I can work with only the remote enviroment.
Git push is not a solution because all files are already updated because I use `Keep Remote Directory up to Date`.
Anyway thank you for answer

Reply with quote

abramesd
Joined:
Posts:
1
Location:
Windsor, CT

martin wrote:

It should work. But I wouldn't do it.

I am doing the same thing and I have to use WINscp because I can't get the SSH connection to work reliably in git. So it is nice to know "it should work" and I really don't care if it overkill but I don't want to mess up the git repository so can you explain why you would not do this?
Thank You

Reply with quote

Advertisement

martin
Site Admin
martin avatar

Re: Is `Keep Remote Directory up to Date` option for the .git folder OK?

This is Git question rather than WinSCP question. Consider asking of Stack Overflow or similar site. Please, post a link here if you do.

Reply with quote

Advertisement

You can post new topics in this forum