Git clean up and working with remote branch

Discard all your local changes:

git reset –hard HEAD

git clean -d -f

Check local and remote branch:

git branch -v -a

Check out a remote branch

git switch -c branch_name origin/branch_name

Leave a Reply

Your email address will not be published. Required fields are marked *