Commands to get commit statistics for a Git repository from the command line -
using git log, git shortlog and friends.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Asking for extra CPU time and heap for those really "heavy" orgs | |
| @isTest class GetExtraLimitsForYourUnitTest implements Queueable { | |
| @testSetup static void testSetup() { | |
| Test.startTest(); // TIP: this avoids governor limits for your @isTest methods | |
| System.enqueueJob(new GetExtraLimitsForYourUnitTest()); // We'll get async limits! | |
| // P.S. Did you know that the end of a unit test method triggers async code, | |
| // just as if you called Test.stopTest()? | |
| } | |
| public void execute(QueueableContext context) { | |
| // I now have 60000ms to do my setup, instead of just 10000ms. |
##How To Reset Your Github Fork
Let’s say I want to contribute to a project on github. The project repository is at wp-cli/wp-cli. First I fork it, and then clone the resulting repository, scribu/wp-cli:
git clone --recursive git@github.com:scribu/wp-cli.git
cd wp-cli
Now, I make some commits to master, push them to my fork and open a pull request. Piece of cake:
git commit -m "awesome new feature"