Looking for a simple (automated) Hg-like workflow #22950
-
I asked here a basic question, but it wasn’t answered: https://stackoverflow.com/questions/54850153/git-looking-for-a-simple-hg-like-workflow |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hey @zoharl3, Thanks for being here! The link to stack is null now, would you mind sharing what you are trying to accomplish, perhaps then we can help point you on the right direction. |
Beta Was this translation helpful? Give feedback.
-
Copying the link content: There’s a repository that is updated from 3 places:
I’m used to save (backup) my code changes often (every hour), and I also use the repository to sync between my computers (I’m just running a script). In Hg, it’s simple, and there were no problems so far:
where %s stands for the harddrive directory. In git, I’m doing:
However, it seems to have issues:
What’s the suggested foolproof, hands off workflow for git? |
Beta Was this translation helpful? Give feedback.
-
If line endings are changing, then it sounds like something isn’t configured properly. And if that assumption is correct, then it may be causing some or all of the other problems. You may want to consult our help documentation on dealing with line endings in git. If that doesn’t fix it, then if you can give us some steps to reproduce the problem, we can take a deeper look. Please include:
Thanks! |
Beta Was this translation helpful? Give feedback.
-
This sounds like a promising direction to look into and a fair request (to reproduce the problem). Since it may take me some time to look into it, I’m accepting this as the solution for now. You also confirmed that my pipeline should work fine in general. Thanks |
Beta Was this translation helpful? Give feedback.
-
I think I found the issue: my TortoiseGit was configured to use cygwin git instead of PortableGit. The former has issues with line endings and reports everything as modified. GUI clients actually warn against using cygwin git. |
Beta Was this translation helpful? Give feedback.
If line endings are changing, then it sounds like something isn’t configured properly. And if that assumption is correct, then it may be causing some or all of the other problems. You may want to consult our help documentation on dealing with line endings in git.
If that doesn’t fix it, then if you can give us some steps to reproduce the problem, we can take a deeper look. Please include:
Thanks!