Please enable JavaScript.
Coggle requires JavaScript to display documents.
git (remote (push (origin master (from local master to origin), without…
git
remote
clone
checkout to origin
detach HEAD
checkout o/master
fetch
reposition o/master
reposition only remote branches
do not reposition local branches
like git push
source is remote destination is local
pull
fetch and merge local with remote
git pull origin master:foo
creates new branch foo
merge to current branch
push
fetch then push
--rebase
pull; push
pushing current branch
origin master
from local master to origin
without parameters
current branch to current remote
git push origin foo^:master
git push origin master:newBranchgit
git push origin :foo
tracking
git checkout -b totallyNotMaster o/master
git branch -u o/master foo
main
branch
"name"
create s new branch
-f master HEAD~3
checkout
commit
branch
-b "new branch name"
rebase
only one parent
rebase master
git checkout master
commit
-m "Message"
merge
checkout master merge custom
refers
HEAD
current checkout
log
^ (parent)
master^
master^2
second parent
~ (before)
master~2
work around
cherry-pick
hash1 hash2
to current checked out branch
rebase -i HEAD~4
allow pick the commits and rebase to current HEAD
modify
commit --ammend
unpushed commit
tag name
commitHash
branch name
describe
info about tags
reset
revert
crete reverted commit
like reset
reset
HEAD~1
commit hash
restoring
stash
go to HEAD for pull
stash apply
add previous changes