^in git code example
Example 1: git merge branch
//this is for merging into a local branch//
// checkout the branch to merge INTO
git checkout master
// merge local feature branch into master branch
git merge feature_branch_name
Example 2: git commands
git init
//add all
git add .
//cancel adds
git reset
//cancel commits
git reset HEAD^
//cancel last 3 commits
git reset HEAD~3
//when first commit
git push -u origin master
//remove remote origin
git remote remove origin
//reset remote origin
git remote add origin https://github.com/yourname/project.git