Skip to content

Instantly share code, notes, and snippets.

View chathudilzo's full-sized avatar
🏠
Working from home

Chathura Dilshan chathudilzo

🏠
Working from home
View GitHub Profile
@chathudilzo
chathudilzo / git-dev-master.markdown
Created January 11, 2024 13:16 — forked from withoutwax/git-dev-master.markdown
Guide on how to work with development branch and merge with master

Working with development branch and merge with master

Sometimes you want to experiment with a code which you have on your master branch but not want to save it to master branch. In this case, you can create another branch where you can experiment with ease - and if you are satisfied, you can merge the experiment to the master branch later.

Creating development branch

git branch development
git checkout development
git add .
git commit -m "Initial commit on development branch"
git push origin development