document.write('<link rel="stylesheet" href="http://gist.github.com/stylesheets/gist/embed.css"/>')





document.write('<div id=\"gist-144367\" class=\"gist\">\n  \n  \n    \n            \n\n      <div class=\"gist-file\">\n        <div class=\"gist-data gist-syntax\">\n          \n          \n          \n            <div class=\"gist-highlight\"><pre><div class=\"line\" id=\"LC1\"><span class=\"c\"># To look at commits which haven&#39;t been pushed to remote<\/span><\/div><div class=\"line\" id=\"LC2\"><span class=\"c\"># I use an alias for lesser typing<\/span><\/div><div class=\"line\" id=\"LC3\"><span class=\"nv\">$&gt;<\/span> <span class=\"nb\">alias <\/span><span class=\"nv\">grd<\/span><span class=\"o\">=<\/span><span class=\"s1\">&#39;gitx origin/master..&#39;<\/span><\/div><div class=\"line\" id=\"LC4\"><span class=\"nv\">$&gt;<\/span> grd<\/div><div class=\"line\" id=\"LC5\">&nbsp;<\/div><div class=\"line\" id=\"LC6\"><span class=\"c\"># Another command I found helpful is git diff | gitx<\/span><\/div><div class=\"line\" id=\"LC7\"><span class=\"c\"># For which I use another alias gdm (this historically used to be an alias<\/span><\/div><div class=\"line\" id=\"LC8\"><span class=\"c\"># for git diff | mate) hence the m<\/span><\/div><div class=\"line\" id=\"LC9\"><span class=\"nv\">$&gt;<\/span> <span class=\"nb\">alias <\/span><span class=\"nv\">gdm<\/span><span class=\"o\">=<\/span><span class=\"s1\">&#39;git diff | gitx&#39;<\/span><\/div><div class=\"line\" id=\"LC10\"><span class=\"nv\">$&gt;<\/span> gdm<\/div><div class=\"line\" id=\"LC11\">&nbsp;<\/div><div class=\"line\" id=\"LC12\"><span class=\"c\"># To check for commits since 1st June 2009<\/span><\/div><div class=\"line\" id=\"LC13\"><span class=\"nv\">$&gt;<\/span> gitx --since<span class=\"o\">=<\/span><span class=\"s2\">&quot;2009-06-01&quot;<\/span><\/div><div class=\"line\" id=\"LC14\">&nbsp;<\/div><div class=\"line\" id=\"LC15\"><span class=\"c\"># To get only the last 10 commits<\/span><\/div><div class=\"line\" id=\"LC16\"><span class=\"nv\">$&gt;<\/span> gitx -10<\/div><div class=\"line\" id=\"LC17\">&nbsp;<\/div><div class=\"line\" id=\"LC18\"><span class=\"c\"># To get all commits without the merges<\/span><\/div><div class=\"line\" id=\"LC19\"><span class=\"nv\">$&gt;<\/span> gitx --no-merges<\/div><\/pre><\/div>\n          \n        <\/div>\n\n        <div class=\"gist-meta\">\n          <a href=\"http://gist.github.com/raw/144367/0546fad89aebdd42734a89c60d8e551ee4298cc9/gitx_command_line.sh\" style=\"float:right;\">view raw<\/a>\n          <a href=\"http://gist.github.com/144367#file_gitx_command_line.sh\" style=\"float:right;margin-right:10px;color:#666\">gitx_command_line.sh<\/a>\n          <a href=\"http://gist.github.com/144367\">This Gist<\/a> brought to you by <a href=\"http://github.com\">GitHub<\/a>.\n        <\/div>\n      <\/div>\n    \n  \n<\/div>\n')
