1. Create a local repository and associate it with a remote repository
- To complete the native code, click Settings in the upper right corner
- Replicate the remote repository link
- Can be completed
2. Create a local branch and submit it to the remote repository
In fact, one kind of branch creation is the branch that needs to be synchronized with others, and this branch needs to be shared with others remotely. One is to create a branch of your own to do a separate function in order to avoid directly modifying the source code.
Remote branches can be created in two ways
1. Create a branch locally and push the branch to the remote repository
Click the branch on the original branch – click Push to synchronize to remote
2. Create a branch remotely and pull the branch locally
Create a branch in a remote repository – right-click to check it out
Develop your flow using Git Flow
git stash
I didn’t know how to use git Stash before, but now I finally understand it: For example, when I am developing a project on the dev branch, a bug appears in the project and needs to be urgently fixed, but the content is only half finished and I don’t want to submit it or push it to a remote location. In this case, I can first use Git add to put the development content into the staging area. Then use the git Stash save command to save the changes to the stack area, and then smoothly switch to the Hotfix branch for bug fixing. When the fix is complete, cut back to the Dev branch again and restore the saved contents from the git stash pop in the stack.
Git Operation Notes
Git files are case sensitive