简易的命令行入门教程:
Git 全局设置:
git config --global user.name "付亚东" git config --global user.email "yadong.si@foxmail.com"
创建 git 仓库:
cd smart_web_im git init git add . git commit -m "初次提交" git remote add origin git push -u origin master
已有仓库?
cd existing_git_repo git remote add origin https://gitee.com/upyadong/netty_demo.git git push -u origin master
其中,在记一下.gitignore文件中的内容,有好多朋友都不太懂这个文件的具体含义,我就贴出来吧
# Created by .ignore support plugin (hsz.mobi) ### Example user template template ### Example user template # IntelliJ project files .idea *.iml out gen### Java template # Compiled class file *.class # Log file *.log logs # BlueJ files *.ctxt # Mobile Tools for Java (J2ME) .mtj.tmp/ # Package Files # *.jar *.war *.nar *.ear *.zip *.tar.gz *.rar # virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml hs_err_pid* target