-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgit_command
53 lines (53 loc) · 1.11 KB
/
git_command
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
git checkout -- [branch_name]
git rm filename
git add .
git add -A
git add --all
git diff filename
git commit -m "[descriptive message]"
git push -u origin master
git pull origin master
git remote add origin <URL.git>
git remote -v
git stash
git stash list
git stash pop
git rebase
git rebase -i
git branch
git status
git merge
git reset
git rm
git rm --cached [file]
git mv [file-original] [file-renamed]
git ls-files --other --ignored --exclude-standard : this command is to list all ignored files in project
git tag
git fetch
git ls-tree
git cat-file
git grep
gitk
git archive
git gc
git reset –hard
git prune
git init
git cherry-pick
git --version
git log [-p]
git log -oneline
git blame (file_name)
git clone
git show HEAD
git describe
git shortlog
git config --global credential.helper cache
git config --global credential.helper 'cache --timeout=3600'
git config --global --unset credential.helper
git config –system core.editor
git config –global –edit
git config –global color.ui auto
git revert
git bisect Use binary search to find the commit that introduced a bug
git grep Print lines matching a pattern