简体   繁体   中英

Add a folder from outside the repository to repo?

I'm working on a WordPress theme, and I've just created a repository from the theme folder inside /wp-content/themes/ directory. But now I've moved some code from the functions.php file to two plugins in the /wp-content/plugins/ directory.

Question, can I add the plugins folder to my exiting repository?

You can store them directly in your repo and create symlinks to them in /wp-content/plugins . This is a popular method, many people use it to manage their dotfiles with git .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM