Deploying code can seem daunting, but it doesn't have to be. This article will guide you through the basic process of deploying your code to an application using Git. We'll cover simple, practical examples to help you get started.
cd c:/www/site
git clone https://github.com/user-name/website-repository -b master
git checkout -b my-branch
git pull origin master
git pull origin master my-branch
// OR
git fetch origin
git reset --hard origin/master
git checkout my-branch
git checkout master
git checkout dev
git status
git add .
git commit -m "My changes"
git push origin my-branch
git checkout master
git pull origin
git checkout my-branch
git merge master
git reset --hard HEAD@{1}