Git command use is definitely one of the skills you need to get started, so make sure you keep a record of some common commands. (note: source code management in vscode is also a good tool to use)

* 1. Create a git

Git git add -u git push -u git add -u git push -u // The origin master pushes and submits. Push can be followed by remote branch, otherwise it is the current branchCopy the code

* 2. Delete the git

Git remote -v // Check whether the list is listed and whether to delete itCopy the code

*3. Git commit related

Git log-10 // Check the latest commit_id. Git reset -hard commit_id // If you need to roll back, the log displays "commit" and specify the corresponding commit_id. -hard indicates whether to reset the modified codeCopy the code

* 4. Git merge

Git checkout master // merge git dev // merge git dev // merge git dev // merge git dev //Copy the code

* 5. Git shelved

Git stash push -m "git stash push" 2. Git Stash pop. When you restore the git stash apply, stash contents are deleted. You can stash multiple times. To recover, first check with the git stash list and then recover with the specified stash command: $git stash apply stash@{0} Git rm --cached file_path = git rm --cached file_path = git rm --cached file_path = git rm --cached file_path = git rm --cached You just don't want this file to be versioned, so you can use itCopy the code

* 6. The other

Sudo git config --global http.postbuffer 5242880000 // Set the size of the git branch cache -a: Check all git push origin --delete dev // Delete remote branch git branch -d dev // Delete local branchCopy the code