git version control using a collection of commands

1. git clone website name
2. git add marks the file as adding a version control identifier
3. git status View the file version control status
4. git commit -m 'file modification registration discourse' Submit the file locally
5. git push to coding.
6. git pull to remotely update code in coding.net



Note :
Git clone can only clone the master branch of the remote library, but cannot clone all branches. The solution is as follows:

1. Find a clean directory, assuming it is git_work
2 . cd git_work
3. git clone http://myrepo.xxx.com/project/.git , this will get a project subdirectory in the git_work directory
4. cd project
5. git branch -a, list all branch names as follows:
remotes/origin/dev
remotes/origin/release
6. git checkout -b dev origin/dev, the function is to checkout the remote dev branch, name the dev branch locally, and switch to the local dev branch
7. git checkout -b release origin/release, see the explanation in the previous step
8. git checkout dev, switch back to the dev branch, and start development.

Guess you like

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