Thursday, March 3, 2016

Sending mail in unix

When sending an email from unix do the following

echo "Mail Message" | mail -s "Subject" person@home.com

In order to avoid getting your email marked as spam, ensure that the sending email is something realistic, probably a domain you own i.e. awesome@homelypeople.com

Reset local git branch to match remote

Setting your branch to exactly match the remote branch can be done in two steps:

git fetch origin
git reset --hard origin/master


Deleting git tags

Delete tag locally

git tag -d tagName

Delete tag on remote

git push --delete origin tagName