git init (初始化本地代码仓库)
git clone https://gitee.com/zq0214/withMe.git
git add . (添加)
git commit -m ‘注释’
git push (推送)
git pull (下载)
修改用户名
查看命令:
git config --global user.name
git config --global user.email
命令分别为:git config --global user.name 张三
git config --global user.email 1@qq.com
git stash 让工作区内容保证与上一次提交内容相同,同时备份当前修改的内容
git pull 拉取仓库的最新内容
git stash pop 在仓库最新内容的基础上添加当前修改的内容
码云 或其他私服 创建 项目
新建文件
在新建文件 目录下
git init (初始化本地代码仓库)
git clone https://gitee.com/zq0214/withMe.git
把已有的项目文件 复制过来
使用intellij 打开项目
配置不提交 文件规则
IntelliJ IDEA
.idea
*.iws
*.iml
*.ipr
/.mvn/
/.idea/vcs.xml
/.idea/workspace.xml
相关资料:
菜鸟:https://www.runoob.com/git/git-tutorial.html
Git 完整命令手册地址:http://git-scm.com/docs
PDF 版命令手册:github-git-cheat-sheet.pdf