# Initialize empty repository git init
# Clone Project to Local
git clone [email protected]:campus2015/training2.git
# New branch and switch to New branch, now this branch is local, Newbranch is the branch name, please name your own branch according to your own needs.
Git checkout-b newbranch
# Switch to your own branch
git checkout Onebranch
# Add files that are not added locally pom.xml
git add pom.xml
# All changes added to the buffer
Git add-a
# submit once, modify into the local repository
Git commit-m ' first commit '
# commit something push to remote branch Newbranch
Git push-u origin Newbranch
# Remote Update Merge to Local
Git push-u origin Haomiao.yang
# Remove Remote Branch Newbranch
git push origin:newbranch (there are spaces between origin and colon)
Git push origin--delete Dev
# View git status
git status
# View Remote Branch
Git branch-avv
Git basic usage