1. install git client
download git client from github
2. new git project
1 | cd dir |
and so on
3. edit .ignore file
edit in .ignore like this1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35*.bak
*.txt
*.vm
.gitignore
#svn
.svn/
# built application files
*.apk
*.ap_
# files for the dex VM
*.dex
# Java class files
*.class
# generated files
bin/
gen/
# Local configuration file (sdk path, etc)
local.properties
# Eclipse project files
.classpath
.project
# Proguard folder generated by Eclipse
proguard/
# Intellij project files
*.iml
*.ipr
*.iws
.idea/
4. commit & push
1 | git add . |
reflesh:1
2
3
4git rm -r --cached .
git add .
git commit -m "fixed untracked files"
git -u origin master