edytawrobel / makers

0 stars 0 forks source link

Git commands #1

Open edytawrobel opened 8 years ago

edytawrobel commented 8 years ago

Table of content

edytawrobel commented 8 years ago

Branches

Command Definition
git checkout -b 'branch_name' Create
git branch -D test_branch Delete
git checkout 'branch_name' Switch
git branch -a See All
git checkout master Go to Master
edytawrobel commented 8 years ago

Commit repository

edytawrobel commented 8 years ago

Undo all uncommitted changes

edytawrobel commented 7 years ago

Common commands

Command Definition
fetch update remote-tracking branches
merge update changes of a branch onto master
clone
pull git fetch + git merge; bring a local branch up-to-date with its remote version
remote The remote repository is only involved when you git push your local commits to a remote repository, or when you git pull someone else's commits from it.