git knowledge consolidation

git pull --rebase origin master
personal understanding, when two git merge projects, due to the directory structure of the two projects is inconsistent. Then push and pull are not enough (this time can be forced to push), mean git pull --rebase origin master This command is to pull the remote repository local repository
git version control
git log displays every log submissions are submitted and a corresponding commit id commit message.
git reset --hard id (here commit id) After executing this command will fall back to the local repository commit id corresponding version
git push origin HEAD --force then this fallback version pushed to the remote repository

Guess you like

Origin www.cnblogs.com/jjsdn/p/12108287.html