-
Notifications
You must be signed in to change notification settings - Fork 0
/
git.txt
57 lines (40 loc) · 1.16 KB
/
git.txt
1
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
##################################################################################################
command : git
section : N
##################################################################################################
#make git repository
git init
#pull file from git repository
git full
#source down from remote to working dictory
#source commit to remote repo (stage -> head -> remote)
git add filename
git commit -m "comment"
git push origin master
#cf - cancel add file(s)
git rm -–cached
#cancel previous all add files
git reset
#my repository
https://github.com/jwkang/tr069_stbambition.git
[email protected]:jwkang2/cpp_study.git
#show current git remote repository
git config --get remote.origin.url
#show log
git log
#show diff
git diff HEAD
git diff --staged
# resettingh the stage
git reset file_path
# git status
to see current status
e.g) ignore untracked file in command "git status" : git -uno
# ignore file or path
.gitignore
e.g) make untracked file ignored
$ git ls-files --others --exclude-standard > .gitignore
# get remote repository information
git remove -v
# remove untracked content in unstaged
git rm --cache Alloy/Alloy.System.Test