<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Pavel Movchan</title>
    <description>The latest articles on DEV Community by Pavel Movchan (@x0st).</description>
    <link>https://dev.to/x0st</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F39153%2F7294432b-c9c3-402f-a85a-a402f95f90ea.png</url>
      <title>DEV Community: Pavel Movchan</title>
      <link>https://dev.to/x0st</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/x0st"/>
    <language>en</language>
    <item>
      <title>Daily git usage</title>
      <dc:creator>Pavel Movchan</dc:creator>
      <pubDate>Sun, 29 Oct 2017 21:58:08 +0000</pubDate>
      <link>https://dev.to/x0st/daily-git-usage-e0d</link>
      <guid>https://dev.to/x0st/daily-git-usage-e0d</guid>
      <description>&lt;p&gt;Hi guys!&lt;br&gt;
We all use Git every day typing commands such as &lt;code&gt;git push origin master&lt;/code&gt; many times a day. But maybe you have aliases contracting to &lt;code&gt;git p&lt;/code&gt;. Gradually, it becomes more irritating.&lt;br&gt;
For example I use the &lt;code&gt;git push origin {branch}&lt;/code&gt; command about 20 times a day. &lt;code&gt;git commit -m "{message}"&lt;/code&gt; maybe 15.&lt;/p&gt;

&lt;p&gt;I don't like the built-in Git tools into IDE's and don't use them at all.&lt;/p&gt;

&lt;p&gt;So I've decided to automate some of my work.&lt;br&gt;
I wrote a script that helps me every day and, I hope, will help you.&lt;/p&gt;

&lt;p&gt;Called &lt;a href="https://github.com/x0st/casual-git"&gt;casual-git&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;How it looks&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;myproject master ➜ gh

  d  - push
  f  - push --force
  p  - pull
  o  - pull --force
  c  - commit
  a  - commit --amend
  s  - commit --smart
  l  - log --pretty
  h  - checkout --smart
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Almost each of the commands I use every day.&lt;/p&gt;

&lt;p&gt;It's really easy to use!&lt;/p&gt;

&lt;p&gt;It is especially helpful if you name your branches with long names like &lt;code&gt;feature/EGNYTE-20-watermarks-over-documents&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;  d  - push
  f  - push --force
  p  - pull
  o  - pull --force
  c  - commit
  a  - commit --amend
  s  - commit --smart
  l  - log --pretty
  h  - checkout --smart

  Enter a branch name or a part of name: ma

  More than one git branch were found. 
  10 first branches are shown. 
  Please choose a desired branch. 

  [0] feature/EGNYTE-20-watermarks-over-documents
  [1] master
  [2] masterfix/EGNYTE-21-big-files-merge
  [3] masterfix/EGNYTE-26
  [4] masterfix/EGNYTE-29-big-files-merge
  [5] masterfix/EGNYTE-33
  [6] masterfix/EGNYTE-41

Switched to branch 'feature/EGNYTE-20-watermarks-over-documents'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Or paths to the files are too long and you need to commit only few of them:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;myproject feature/EGNYTE-68-progress-bar-for-watermarking ➜ gh

  d  - push
  f  - push --force
  p  - pull
  o  - pull --force
  c  - commit
  a  - commit --amend
  s  - commit --smart
  l  - log --pretty
  h  - checkout --smart

  Delete files from the next commit:
  No staged files

  Add files to the next commit:
  [1] modified:  app/Http/Controllers/WatermarkController.php
  [2] modified:  app/Jobs/Egnyte/PublishWatermark/Job.php
  [3] modified:  app/Services/QueuedMessage/Queue.php
  [4] modified:  public/css/watermark.css
  [5] modified:  public/js/watermark.js
  [6] modified:  public/mix-manifest.json
  [7] modified:  resources/assets/js/watermark.js
  [8] modified:  resources/assets/scss/watermark.scss
  [9] modified:  resources/lang/en/watermark.php
  [10] modified:  resources/views/watermark/index.blade.php
  [11] modified:  webpack.mix.js

  Enter file numbers separating by spaces: 1 2 3
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://github.com/x0st/casual-git"&gt;Github repo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I hope this helps someone!&lt;/p&gt;

</description>
      <category>git</category>
    </item>
  </channel>
</rss>
