码云或GitHub上创建项目时,不要选择“使用***初始化这个项目”

如果选择“使用***初始化这个项目”,每次在git上新建项目后,本地上传代码还得先clone或者pull,弄不好还报错;

所以以后初始化搭建工程时直接在git上创建空项目,需要的东西(Readme什么的)都在本地写,

然后直接git add→commit→push。



拓展:

1.用IDEA上传本地项目到码云/Github:https://blog.csdn.net/zsyoung/article/details/76891211


2. git config --global user.name "hjl666"
    git config --global user.email "[email protected]"

猜你喜欢

转载自blog.csdn.net/iaiot/article/details/79818794
今日推荐