Out about the development of more and more with the command git
git clone https://github.com/chineseLiao/Small-career // clone a remote repository to local
git add. // Select the modified file
git the commit -m " here are some of the description "// submit to the local modify and add a description
git pull // pull remote code
git push // push remote
forcibly pulling, i.e., local coverage modification, only remote code using instructions below set
git fetch --all // pull the latest changes warehouse, do not merge
git reset --hard origin / master // remove local changes, and use the latest code matser branch
git pull // pull
git push // submit a remote
git branch -a // View all branch
git branch -l // View all local branches
git checkout develop // switch to develop branch
git merge develop // merge develop branch to the current branch
git branch -d feature-facelib // delete locals face database feature branch
git push origin: feature-facelib // delete remote branch library features of a human face
Submissions have found documents missing, here is a set of instructions
git add // add the whole file.
Git the commit - git commit amend // add this command, when you git push, will eventually have to submit a record
git init // initialize a git project
how to create and submit to the remote branch,
for example: the master branch based, feature-facelib created and pushed to the remote branch, the following instruction set is
git checkout master // If not in the master switch to master, if the branch is already in the master skip this step
git checkout -b feature-facelib // branch based on the current (currently master) and create a feature-facelib clone branch, and cloned into the feature-facelib handover branch
git push origin feature-facelib // the feature- facelib associated push to a remote repository
and then talk about the use of the various branches of the
master branch, the main branch function fully realized, finally released in the master branch, which ensure the most stable code, all functions are to undergo post-test code to test together into the branch
develop branch development branch based master creation, development process This branch is based on pull feature branch
release branch, branch testing publish develop branch creation, development branch after the self-test is complete, you need to publish internal testing, testing by the co-develop into a branch-based
feature branch, branch characteristics of the different needs of people development In use, the pull-based develop, after development to develop branch merge
bugfix branch, bug fixes branch, the master branch-based cloning, is mainly used to repair the published branch bug found, that is common bug, such as bug on the master branch, then develop the code based on the master branch has pulled the bug after repair bug, in close co-develop branch into the master branch
Then finished, slip the slip ~
Amway last a Bobo main micro-channel public number, thanks to attention