Hızlı yanıt: kod örneği
Option A:Ergo, for use:Option B:Move the folder, too. Note that the folder is hidden in most graphical file explorers, so be sure to show hidden files.The first line grabs all normal files, the second line grabs dot-files. It is also possibe to do it in one line by enabling dotglob (i.e. ) but that is probably a bad solution if you are asking the question this answer answers.Better yet:Keep your working copy somewhere else, and create a symbolic link. Like this:For your case this would be something like:Which easily could be changed to test if you wanted it, i.e.:without moving files around. Added in case someone is copying these lines ( is force, avoid some often unwanted interactions with already and non-existing links).If you just want it to work, use Option A, if someone else is going to look at what you have done, use Option C.
git clone[email protected]:whatever folder-name
right here
git clone[email protected]:whatever .
.git
.git
mv /where/it/is/right/now/* /where/I/want/it/mv /where/it/is/right/now/.* /where/I/want/it/
shopt -s dotglob
ln -s /where/it/is/right/now /the/path/I/want/to/use
ln -sfn /opt/projectA/prod/public /httpdocs/public
ln -sfn /opt/projectA/test/public /httpdocs/public
-fn
-f
-n