1、先在编译器里面打开要存放代码的文件,去GitHub获取clone的地址,在编译器的Terminal里面输入命令:
git clone github要clone的https地址
2、切换到clone下载的代码的路径下
3、查看都有哪些分支
git branch -a (全部分支)
git branch (本地分支)
4、添加所修改的代码到分支上:
git add . (.代码文件夹中所有文件中修改的内容)
git add path (path代表实际的文件地址)
5、添加描述内容
git commit -m '描述的内容'
6、提交前拉取一下最新的代码
git pull
7、再次进行提交代码到远端
git push