Just run this:
$ git merge-base awesome master d931216adebf441dc7431f1a073baed8b4a1b20aAnd you'll get the SHA1 of the most recent common commit.
$ git merge-base awesome master d931216adebf441dc7431f1a073baed8b4a1b20aAnd you'll get the SHA1 of the most recent common commit.
git checkout -
to switch to the previous branch.# suppose we're at the branch 'master' now $ git checkout - Switched to branch 'awesome' # now let's go back to master $ git checkout - Switched to branch 'master'Yeah, that's pretty similar to a good old
cd -
.
git config --global alias.st status git config --global alias.co checkout git config --global alias.ci commitAnd you're done:
$ git ci --allow-empty -m "nice, we can commit with 'git ci' now"
amazing_function
and you want to measure its speed.time
, and looping n
times. Use:$ ipython In [1]: %timeit amazing_function('some', 'arguments') 100000 loops, best of 3: 13.4 µs per loop