GIT

Continued..

Create a feature branch

$git branch featureA1

$git checkout featureA1

To start working on featureA1 branch

$git branch

$git status

$git add -A

$git commit -m “ticket-25: committing to feature branch”

Push to remote repo

$git push -u origin featureA1

$git branch -a

Merging the feature branch with master

$git checkout master

$git pull origin master

$git branch – -merged

List all merged branches to master

$git merge featureA1

$git push origin master

$git branch – -merged

$git branch -d featureA1

To delete the feature branch after merge is done

$git branch -a

$git push origin – -delete featureA1

<<Back