git remote prune origin # 刷新本地仓库保持与远程仓库的改动的同步git push origin --delete [branch_name] # 删除远程分支 #When you are making a pull request, you will see that there is nothing to compare against. Thanks to Jamie, here is a command that will fix that:git merge main --allow-unrelated-histories# Make sure you run this from the practical branch.
# Remove .vscode from trackinggit rm -r --cached .vscode# update .gitignore file list# Stage the changesgit add .gitignore# Commit the changesgit commit -m "Remove .vscode directory from the repository"# Push the changesgit push