git add codepool/errors/local.xml codepool/errors/local.xml.sample
git commit -m "GS-2264 removed unwanted files"
git push origin feature-GS-2337
sudo apt-get install postfix mailutils libsasl2-2 ca-certificates libsasl2-modules
vim /etc/postfix/main.cf
relayhost = [smtp.gmail.com]:587
smtp_sasl_auth_enable = yes
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_security_options = noanonymous
smtp_tls_CAfile = /etc/postfix/cacert.pem
smtp_use_tls = yes
vim /etc/postfix/sasl_passwd
[smtp.gmail.com]:587 USERNAME@gmail.com:PASSWORD
@gmail.com
with your @domain.com
sudo chmod 400 /etc/postfix/sasl_passwd
sudo postmap /etc/postfix/sasl_passwd
cat /etc/ssl/certs/Thawte_Premium_Server_CA.pem | sudo tee -a /etc/postfix/cacert.pem
sudo /etc/init.d/postfix reload
echo "Test mail from postfix" | mail -s "Test Postfix" you@example.com
git reset
and git checkout
determine their scope. When you don’t include a file path as a parameter, they operate on whole commits. That’s what we’ll be exploring in this section. Note that git revert
has no file-level counterpart.hotfix
branch backwards by two commits.git checkout hotfix
git reset HEAD~2
hotfix
are now dangling commits, which means they will be deleted the next time Git performs a garbage collection. In other words, you’re saying that you want to throw away these commits. This can be visualized as the following:git reset
is a simple way to undo changes that haven’t been shared with anyone else. It’s your go-to command when you’ve started working on a feature and find yourself thinking, “Oh crap, what am I doing? I should just start over.”git reset
to alter the staged snapshot and/or the working directory by passing it one of the following flags:--soft
– The staged snapshot and working directory are not altered in any way.--mixed
– The staged snapshot is updated to match the specified commit, but the working directory is not affected. This is the default option.--hard
– The staged snapshot and the working directory are both updated to match the specified commit.git reset
operation:HEAD
as the parameter. For instance,git reset --mixed HEAD
has the affect of unstaging all changes, but leaves them in the working directory. On the other hand, if you want to completely throw away all your uncommitted changes, you would use git reset --hard HEAD
. These are two of the most common uses of git reset
.HEAD
to git reset
, since this re-writes the current branch’s history. As discussed in The Golden Rule of Rebasing, this a big problem when working on a public branch.git checkout
. When passed a branch name, it lets you switch between branches.git checkout hotfix
HEAD
to a different branch and update the working directory to match. Since this has the potential to overwrite local changes, Git forces you to commit or stash any changes in the working directory that will be lost during the checkout operation. Unlike git reset
, git checkout
doesn’t move any branches around.HEAD
reference to the specified commit. For example, the following command will check out out the grandparent of the current commit:git checkout HEAD~2
HEAD
, this puts you in a detached HEAD state
. This can be dangerous if you start adding new commits because there will be no way to get back to them after you switch to another branch. For this reason, you should always create a new branch before adding commits to a detached HEAD
.git checkout hotfix
git revert HEAD~2
git reset
, which does alter the existing commit history. For this reason, git revert
should be used to undo changes on a public branch, The parameters that you pass to git reset and git checkout determine their scope. When you don’t include a file path as a parameter, they operate on whole commits. That’s what we’ll be exploring in this section. Note that git revert has no file-level counterpart.git reset
should be reserved for undoing changes on a private branch.git revert
as a tool for undoing committedchanges, while git reset HEAD
is for undoing uncommitted changes.git checkout
, git revert
has the potential to overwrite files in the working directory, so it will ask you to commit or stash changes that would be lost during the revert operation.grep -nr yourString* .
-r
searches sub-directories.grep -nr MobileAppSer* .
(Will search for MobileAppServlet.java
or .class
or .txt
; MobileAppASer*.*
is another way to do the same thing.)
sudo add-apt-repository ppa:ubuntu-mozilla-daily/firefox-aurora
sudo apt-get update
sudo apt-get install firefox
sudo apt-get install gnome-panel
gnome-desktop-item-edit ~/.local/share/applications --create-new
Create a shortcut and it’s done.