1. First, create your own project on https://github.com/, as follows;

Git version (Xcode) : git version (Xcode) : git version (Xcode) : git version

3. Create a folder and CD it to the folder

4, git init

Ssh-keygen -t rsa -c “2144***@**. Com “, the shadow part is your github email address.

6. Answer the Github page again and add the GENERATED SSH configuration to Github. The process is as follows: Click your profile picture in the upper right corner to display the list shown in figure 1.

7. Click New SSH Key and copy the contents from the paste board to the key. You can fill in the Title as you like. (please reference about how to generate the key – https://juejin.cn/post/6844903586380382221)

8. The configuration has been completed on Github. Now go back to terminal and enter the command SSH -t [email protected] to verify whether the configuration is successful.

9. In git config, you need to set your login name to the email you have logged in to. This is very important because it will be used for every Git commit. It’s embedded in your submission forever.

git config –global user.name “your name”

git config –global user.email “[email protected]

Git status: you will see all the changes.

Git add.

Git commit -m “– first”; Git remote add github https://github.com/ your username /github project name.git; Git push -f github commit to Github

13. Ok, done, refresh your github project, do you find any differences? !!!!!

14. If there are further changes to the local file, repeat step 10 and submit the changed file to Github again.