How to use GitHub Desktop + Code Cloud (GIT.oschina) [Reprint]

     GitHub is blocked from time to time. Although FQ of code is a necessary skill, it is always inconvenient. So Boss Yue chose to use the domestic code cloud (open source China's GIT tool). GitHub actually has a desktop version of the software. Since using it, it has basically bid farewell to the era of typing git commands on the command line. Next, let's talk about how GitHub Desktop and Open Source China's GIT code cloud match.

  1. How to import from the code cloud GIT to the GitHubDeskTop desktop tool.

    1. First use the command line to switch to the local directory.

    2. Use the git clone code cloud GIT address command to clone the project locally.

    3. Add a local project (local path) on GitHub Desktop.

    4. Feel free to submit and sync on GitHub Desktop!

  2. How to upload the local project to the code cloud GIT.

    1. Select a local directory and add a local project on GitHub Desktop.

    2. Create a new project on the code cloud GIT.

    3. The command line uses the git remote add origin GIT address to establish a relationship between the local project and the code cloud GIT project.

    4. First use the command git pull origin master to synchronize the code.

    5. Use the command git push origin master to push the local code to the remote project.

    6. Feel free to submit and sync on GitHub Desktop!

  In fact, the functions of GitHub Desktop itself are quite simple. The main functions are to view branches, switch branches, view submission records, view code diffs, submit codes, and synchronize remote codes. These functions are basically understandable at a glance in the software. , I won't go into details!

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326263904&siteId=291194637