git关联本地文件和远程仓库


注意将当前分支关联到远程分支时,由于github的远程分支master已经改名为main了,因此下面的命令要修改:
old: git pull origin master --> git pull origin main
参考