Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for the ot-apollo domain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at the init action or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /home3/achieve/public_html/knowledgebase/wp-includes/functions.php on line 6131

Warning: Cannot modify header information - headers already sent by (output started at /home3/achieve/public_html/knowledgebase/wp-includes/functions.php:6131) in /home3/achieve/public_html/knowledgebase/wp-includes/feed-rss2.php on line 8
Shortcuts – Knowledge https://knowledge.achieveee.com Tue, 18 Apr 2017 15:04:11 +0000 en-US hourly 1 https://wordpress.org/?v=6.9.4 https://knowledge.achieveee.com/wp-content/uploads/2016/05/cropped-favicon-32x32.png Shortcuts – Knowledge https://knowledge.achieveee.com 32 32 Git shortcuts for Linux based systems https://knowledge.achieveee.com/knowledge_base/git-shortcuts-for-linux-based-systems/?utm_source=rss&utm_medium=rss&utm_campaign=git-shortcuts-for-linux-based-systems https://knowledge.achieveee.com/knowledge_base/git-shortcuts-for-linux-based-systems/#respond Tue, 18 Apr 2017 15:04:11 +0000 http://knowledge.achieveee.com/?post_type=knowledge_base&p=2508 Put the below code at the end of your ~/.bashrc file:

alias gs='git status'
alias ga='git add -A'
alias gc='git commit -a -m $1'
alias gp='git push origin master'
alias gpl='git pull origin master'

After saving the file, restart the command prompt. Type the alias in the command prompt to get the results:

  • Git Status:
    gs
  • Git Add:
    ga
  • Git commit:
    gc "your message"
  • Git Push:
    gp
  • Git Pull:
    gpl

*Note:
$1, $2, $3, etc… are command line inputs which are passed to alias.
Same way you can also use this feature in Git Push & Git Pull to treat command line inputs as sources and branches

]]>
https://knowledge.achieveee.com/knowledge_base/git-shortcuts-for-linux-based-systems/feed/ 0