41개의 명령어를 찾았습니다
예제:
$ git init
git init [directory]
예제:
$ git clone [url]
git clone [url] [directory]
git clone --depth 1 [url]
예제:
$ git add [file]
git add .
git add -A
예제:
$ git commit -m "message"
git commit -am "message"
git commit --amend
예제:
$ git push origin main
git push -u origin main
git push --force
예제:
$ git pull origin main
git pull --rebase origin main
예제:
$ git fetch origin
git fetch --all
git fetch --prune
예제:
$ git merge [branch]
git merge --no-ff [branch]
git merge --abort
예제:
$ git branch
git branch [name]
git branch -d [name]
예제:
$ git checkout [branch]
git checkout -b [branch]
git checkout -- [file]
예제:
$ git status
git status -s
git status --ignored
예제:
$ git log
git log --oneline
git log --graph
예제:
$ git diff
git diff [file]
git diff HEAD~1
예제:
$ git reset HEAD~1
git reset --hard HEAD~1
git reset --soft HEAD~1
예제:
$ git revert [commit]
git revert --no-commit [commit]
예제:
$ git stash
git stash pop
git stash list
예제:
$ git tag [name]
git tag -a [name] -m "message"
git tag -l
예제:
$ git remote -v
git remote add origin [url]
git remote remove origin
예제:
$ git config --global user.name "name"
git config --list
git config --get user.name
예제:
$ git clean -n
git clean -f
git clean -fd
예제:
$ git rm [file]
git rm --cached [file]
git rm -r [directory]
예제:
$ git mv [old] [new]
git mv -f [old] [new]
예제:
$ git show [commit]
git show [branch]
git show [tag]
예제:
$ git blame [file]
git blame -L 10,20 [file]
예제:
$ git bisect start
git bisect good [commit]
git bisect bad [commit]
예제:
$ git cherry-pick [commit]
git cherry-pick -x [commit]
예제:
$ git rebase [branch]
git rebase -i HEAD~3
git rebase --abort
예제:
$ git submodule add [url]
git submodule update
git submodule init
예제:
$ git worktree add [path] [branch]
git worktree list
git worktree remove [path]
예제:
$ git filter-branch --env-filter '...'
git filter-branch --tree-filter '...'
예제:
$ git gc
git gc --aggressive
git gc --auto
예제:
$ git fsck
git fsck --full
git fsck --unreachable
예제:
$ git reflog
git reflog show [ref]
git reflog expire
예제:
$ git notes add
git notes show [commit]
git notes remove [commit]
예제:
$ git archive --format=zip HEAD
git archive --format=tar HEAD
예제:
$ git bundle create repo.bundle HEAD
git bundle verify repo.bundle
예제:
$ git daemon --base-path=/path/to/repo
git daemon --export-all
예제:
$ git instaweb --start
git instaweb --stop
예제:
$ git mergetool
git mergetool --tool=vimdiff
예제:
$ git p4 clone [p4 depot path]
git p4 submit
예제:
$ git svn clone [svn repo]
git svn rebase