Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
253 views
in Technique[技术] by (71.8m points)

windows - Git Extensions: How to set the URL using a global variable

I am wondering: is there a possibility to state the URL of a remote repository with a variable from the system using Git Extensions.

So I declared a global variable in windows: CENTRAL_REPO and stored the path to my central repository there.

Usually I would now write something like this %CENTRAL_REPO%source to get to the place I have my Repo at. Sadly, all the possibilities I know do not work and I have no idea where to look at. Any help is appreciated.

question from:https://stackoverflow.com/questions/65900878/git-extensions-how-to-set-the-url-using-a-global-variable

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Ok, I have now read a lot and also studied the Git Extensions manual for some time. I have tried basically all available combinations like [Central_Repo]source or $(CENTRAL_REPO)source. It seems like there is no way to use a windows global variable or any other variable to state the URL of a Repository.

In case anyone got a different answer later on, I am happy to hear it!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...