將現有資料夾推送git倉庫

小易儿發表於2024-07-02

詳細見: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

相關文章