克隆现有repo并创建react应用程序



所以我有点困惑。我必须克隆一个只包含asset文件夹的远程repo。创建一个新的分支,处理它,然后推动回购。唯一的问题是,我必须使用creat-react-app。所以我的问题是,git命令的正确顺序是什么?

1. git clone "repository name" 
2. create-react-app .
3. git branch "branch name" 
4. git checkout "branch name" 
5. git push origin "branch name".

如果我的想法正确,请告诉我。非常感谢!!

克隆后:

  1. 创建一个新分支并切换到分支

  2. 从始发地提取,使您的分支机构保持最新

  3. 创建react应用程序。添加更改并提交

  4. 推送到远程分支

    1. git clone "repository name" 
    2. git checkout -b "branch name"
    3. git pull origin <default branch> # pull from origin to keep you up to date
    4. create-react-app .
    5. git add .
    6. git commit -m "your msg"
    7. git push origin "branch name"
    

最新更新