Please enable JavaScript.
Coggle requires JavaScript to display documents.
JAVA WEB COURSE ................. GIT syntax (git add filename, git add …
JAVA WEB COURSE
.................
GIT syntax
git add filename
git add .
git init
git status
git branch
git branch -a
git remote add origin url
git remote -v
git remote rm origin
git branch new_branch from_branch
git branch new_branch from_commit
git branch new_branch
git branch -d branch_name
git branch -m new_branch_name
git branch -m old_branch_name new_branch_name
git log
git log --oneline
git log --oneline --decorate --graph --all
git branch -v
git branch --merged
git branch -- unmerged
git branch -D branch_name
git stash
git stash list
git stash show stash_id
git stash pop
git stash apply stash_id
git stash save message
git commit -m "message"
git commit --amend
git commit --amend --no-edit
git reflog
git hash-object filename
git ls-tree branch_name
git ls-tree commit_hash
git reset --soft HEAD~i
git reset -- hard HEAD~i
git revert commit_hash
git merge branch_name
git merge --no-ff branch_name
git merge --squash feature_branch
git merge commit_hash
git rebase branch_name
git rebase commit_hash
git cherry-pick commit_hash
git fetch
git fetch origin branch_name
git pull[set-upstream-already]
git pull [-u] origin remote_branch
git pull --rebase origin remote_branch
git remote show origin
[show-tracked-remote-branch]
git branch -u|[--set-upstream] origin/branch_name
git branch --unset-upstream
git push [set-upstream-already]
git push [-u] origin remote_branch
[local_branch_name same as remote_branch name]
or [set-upstream-already]
git push [-u] origin local_branch:remote_branch
git checkout branch_name
git checkout commit_hash [detach HEAD]
git checkout -b branch_name from_branch
git checkout -b branch_name commit_hash
git branch | grep -v "development" | grep -v "master" | xargs git branch -D
git branch -u origin/origin-remote-branch
git branch --unset-upstream
git reset commit_hash
git fetch --prune = git remote prune origin