git sync local with remote code example
Example 1: git sync local branch with remote
git fetch --prune origin
git reset --hard origin/master
git clean -f -d
Example 2: github sync local with remote
// cd to your project folder
>git init
>git remote add origin https://github.com/YOUR_GITHUB_NAME/YOUR_REPO_NAME.git
>git add .
>git commit -m "init"
>git push --set-upstream origin master