github分布式代码管理平台在本地创建仓库,git clone多个不同的项目在一个本地库下,本地创建的仓库可以创建若干个目录每个目录(必须对应进入到目录才能远程push)对应远程的一个仓库。目录和版本库之间可以创建若干个分支管理不断变化的代码有助于大家相互配合协作从而提升工作效率。
方式一:git diff HEAD 或
方式二:git log --pretty=oneline --abbrev-commit git diff commit1 commit2
pc机:
cd mulu
git init
git config --global user.name
git config --global user.name wangjian8867
git config --global user.email
git config --global user.email 332723882@qq.com
git clone yuanchengku1@github.com:wangjian88667
git clone yuanchengku2@github.com:wangjian88667
...
git remote rm origin
git remote add origin yuanchengku1@github.com:wangjian88667(老版本在此之后还需要添加github秘钥,现在只需要输入本地账号密码即可以后都不需要输入密码账号直接git push即可)
git push -u origin master(之后简化成git push)
参考链接
https://www.cnblogs.com/leaf930814/p/6664706.html
原文:https://www.cnblogs.com/wangdadada/p/12256670.html