Configure the git address of the local project and push it to the remote warehouse

Article directory


git usage notes

1. Enter the project folder,

cd /Users/kk/Desktop/project/k_demo

Replace the above project path with your own project path

2. Initialize git and use git init to turn the project into a project that can be managed by git

git init

3. Add the files under the project to the local temporary storage area through git add . The following "." represents all the files under the added file

git add .

4. Submit the files added in the previous step to the local warehouse through git commit, and attach your submission information

git commit -m ‘init commit’

5, Associate the local warehouse with the remote warehouse

git remote add origin https://e.coding.net/kk/flutter_android_module.git

6. Merge the local warehouse and the remote warehouse. If the remote warehouse is not empty, be sure to do this step, otherwise push will fail later

git pull --rebase origin master

7. After the merger is completed, push the local warehouse to the remote warehouse. This process will require input of user name and password for verification

git push -u origin master

At this point, the steps of adding the local warehouse to the remote are completed.

Guess you like

Origin blog.csdn.net/zyq880625/article/details/131454959