开发者

git branches and running programs

开发者 https://www.devze.com 2023-04-06 23:21 出处:网络
I am running a program in a git repository on a linux server. This program periodically calls another program in that repository. If I do a git checkout \'otherbranch\' in the middle of execution will

I am running a program in a git repository on a linux server. This program periodically calls another program in that repository. If I do a git checkout 'otherbranch' in the middle of execution will it suddenly start calling the version of that program in the other branch?

I'm new to git and don't understand the intricacies yet. How d开发者_开发知识库oes git affect things like program execution?


When you do git otherbranch, the program in the other branch is checked out. And most of the time, if the call has not happened yet, the calling program will call the new program. It might depend on the nature of the calling program though.

And IMO this has nothing to do with Git. Git doesn't affect program execution. The program does. All git controls is what content is there in the filesystem.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号