将现有文件夹推送git仓库

 

详细见:https://www.jianshu.com/p/c34f4e315785

步骤:

Push an existing folder
cd existing_folder
git init
git checkout -b  main
git remote add origin git@gitlab.com:mygit/mypro.git
git add .
git commit -m "Initial commit"
git push -u origin main
posted @ 2024-07-02 17:19  小易儿  阅读(7)  评论(0编辑  收藏  举报