Delete the most recent commit:
git reset --hard HEAD~1
Delete the most recent commit, without destroying the work you've done:
git reset --soft HEAD~1
git branch -m master master-old # rename master on local | |
git push origin :master # delete master on remote | |
git push origin master-old # create master-old on remote | |
git checkout -b master OTHERBRANCH # create a new local master on top of OTHERBRANCH | |
git push origin master # create master on remote |
http://cloudhostingsource.com/setup-ssl-certificate-openshift/ |
Hot Deployment | |
Introduction | |
When the git push command is run to upload code modifications, OpenShift Online stops, builds, deploys, and restarts an application. This entire process takes time to complete and is unnecessary for many types of code changes. With hot deployment the changes to application code are applied without restarting the application cartridge, resulting in increased deployment speed and minimized application downtime. | |
OpenShift Online provides support for hot deployment through a hot_deploy marker file. If the marker is present, supported application cartridges automatically hot deploy when the git push command is executed. | |
Enabling and Disabling Hot Deployment | |
WINDOWS | |
Enable hot deployment by creating the hot_deploy marker file in the application’s root directory with the following command: |
Delete the most recent commit:
git reset --hard HEAD~1
Delete the most recent commit, without destroying the work you've done:
git reset --soft HEAD~1
1 | |
$ sudo gem install cocoapods | |
And afterwards: | |
1 | |
$ pod setup | |
Once Cocoapods is installed, navigate to your project library (still in the terminal) and enter this line: | |
1 | |
$ pod init | |
This will integrate Cocoapods into your project, and create, among other things, a file called Podfile which will be used to manage your project’s dependencies. | |
For more information about Cocoapods and the installation process, you can refer to the Cocoapods homepage, or this tutorial. |
git push openshift HEAD |
'use strict'; | |
angular.module('HireStack').directive('chartLines', ['$location', function($location){ | |
// Runs dursuing compile | |
return { | |
// name: '', | |
// priority: 1, | |
// terminal: true, | |
// scope: {}, // {} = isolate, true = child, false/undefined = no change | |
// controller: function($scope, $element, $attrs, $transclude) {}, |
rhc set-env NODE_ENV=development -a alfred |
sudo lsof -iTCP -sTCP:LISTEN -n -P |
curl -XPUT localhost:9200/_cluster/settings -d '{ | |
"transient" : { | |
"cluster.routing.allocation.disk.watermark.low" : "95%", | |
"cluster.routing.allocation.disk.watermark.high" : "50gb", | |
"cluster.info.update.interval" : "1m" | |
} | |
}' |