Preference-->General-->Workspace-->右边 改成utf-8和Unix
项目右键Resource 直接改utf-8和Unix
Setting--->Editor-->Code Style--> 第二项换行符 Unix
? File Encodings-->utf-8
git config --global user.name "username"
配置姓名
git config --global user.email "email"
配置email地址
git config --global core.autocrlf false
git clone url [本地库名]
url
:克隆地址
[本地库名]
:没有[],直接命名
git status
创建
touch .gitignore
文件编辑
.gitignore
# Compiled class file
*.class
# Log file
*.log
# 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*
/bin/
.classpath
.project
*.bak
*~
/.settings/
git add 具体文件
git add .
//所有添加跟踪
git commit -m "commit info"
commit info
:注释信息
git push origin master
origin
:远程仓库
master
:远程分支
git pull origin master
origin
:远程仓库
master
:远程分支
git init
git remote add origin 远程库的url
git pull origin master
拷贝gitignore文件
git status
:查看状态
git add 文件
:建立追踪
git commit -m "注释信息"
git push -u origin master
-u
: 关联远程库
在设置里,很简单,进去就会,实在不会开翻译
原文:https://www.cnblogs.com/jsccc520/p/11255519.html