Git personal common commands

git status View status and whether there is a .git file

git clone [email protected]/xxx.git clone online code to the local desktop

git status view workspace

git add. Create a new empty file and add it to the staging area

git commit -m'xxx' submits the empty file to the repository (local warehouse) xxx is a comment

git push local code submitted to the online warehouse

git pull pulls online branches to local

git checkout xxx switch local branch

git merge xxx merge branch

git reset --hard e377f60 rollback

PS
netstat -ano|findstr 8080 View 8080 port number

taskkill /PID 36588 /F Terminate port 8080 process

Guess you like

Origin blog.csdn.net/weixin_43176019/article/details/108275200
Recommended