Ignore part of file in git when using on 2 different computers (python) -
i using python program on 2 different computers.
on computer 1 path (e.g., image or something), used program, is, say, a/b/
on computer 2, equivalent path different, say, b/a/ (the image, e.g., in different folder)
when want run script on computer 1 pull code , set path a/b/. make changes , push.
then go computer 2 , pull. path a/b/ want pull not change path (all rest should change though of course).
q1: there way automatically (prevent changes in path)? keep getting merge conflicts due path being different.
q2: might not doing in optimal way, how people this? procedure wrong causing these issues.
absolute paths depend on specific computer not belong in version control. solution have program read environment variable , use path. make sure set sensible default if environment variable unset.
Comments
Post a Comment