1. Submit the code to a remote branch
View all git branch -a branch
git checkout -b xxx switch to their local branch
git checkout -b xxx origin / QA QA branch to create and switch
git add test.cpp test.cpp added to the cache.
git reset HEAD test.cpp to cancel cached content test.cpp
git commit -m "update" will be added to cached content repository.
git status to see what changes have local warehouse.
git push origin mcy: QA pushed to the local branch mcy QA remote branch.
git push origin head: QA if you forget to switch to the local branch, you can force command submitted through the entry.
2. Delete the code to the remote branch
git rm test.cpp
git commit -m "rm test.cpp"
The rollback commit id codes
git reset --hard 892803238432784727
git show 892803238432784727 view the contents of a commit
4. Update Code
git pull origin QA update remote branches to local codes
The default master git pull pulling Code
git merge origin / master remote master code into native will merge more secure.