工作中遇到一个需求,代码中包含部分不需要的文件夹,需要将git默认路径进行修改。
1. 将.git文件夹移动到目标文件夹目录中
2. 将变更内容保存到git log中
git status
git add .
git commit -m "move git to target folder"
3. 将修改推送的服务器
工作中遇到一个需求,代码中包含部分不需要的文件夹,需要将git默认路径进行修改。
1. 将.git文件夹移动到目标文件夹目录中
2. 将变更内容保存到git log中
git status
git add .
git commit -m "move git to target folder"
3. 将修改推送的服务器