Git Basics

Basics

Adding a file and making commit

git add file
git commit -m 'Message'

Branching

Creating

git checkout -b myfeature develop

Merging

git checkout develop
git merge --no-ff myfeature

Deleting

git branch -d myfeature

List all branches

git branch -a

Renaming a branch

git checkout development
git branch -m develop ...
more ...