开发者

git branches and running programs

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜