Create git spacegit initset The local cofiggit config--global user.name "xx" git config--global user.email "[Email Protec Ted] "Set the remote Urlgit Remote add Origin https://git.oschina.net/xx/aaa.gitdownload file:git fetchcreate the local bra Nch to link to the remote Branch:git checkout-b master origin/master Add new file:git add Filenamegit commit ... git push ... Modify the Loacl file and Reupload:git diffgit commit-a-M "decription" Git push origin masterdownload file:git fetch orig Ingit Merge Origin/mastercheck The modified Loggit log-pcreate a new Branch:git branch testingswitch to Branch:git Checko UT testingcreate and switch to a new branch:git checkout-b testingmerge the branch:git checkout mastergit merge Testingde Lete a merged branch:git branch-d testinglist all the Branches:git branch-vlist all the unmerged branches:git branch--n O-merged
Temporarily first organized as above, hope to everyone has help!
Common git commands to share