简体   繁体   English

克隆现有的 repo 并创建 react-app

[英]cloning existing repo and creating react-app

So I got a little bit confused.所以我有点困惑。 I have to clone a remote repo which contains only an asset folder.我必须克隆一个仅包含asset文件夹的远程存储库。 Create a new branch, work on it, and then push to that repo.创建一个新分支,处理它,然后推送到该存储库。 The only problem is, I have to use creat-react-app .唯一的问题是,我必须使用creat-react-app So my question is, what is the right order of git commands?所以我的问题是,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".

Please let me know if I'm thinking correctly.如果我的想法正确,请告诉我。 Many thanks in advance !!提前谢谢了 !!

after cloning:克隆后:

  1. create a new branch and switch to the branch创建一个新分支并切换到该分支

  2. pull from origin to keep your branch up-todate从原点拉取以使您的分支保持最新

  3. create-react-app .创建反应应用程序。 add changes and commit添加更改并提交

  4. push to remote branch推送到远程分支

     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"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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