Skip to content

Instantly share code, notes, and snippets.

@gkhays
Last active April 11, 2020 16:00
Show Gist options
  • Save gkhays/67bb9bc72358f2583f813e6ddf9e10c9 to your computer and use it in GitHub Desktop.
Save gkhays/67bb9bc72358f2583f813e6ddf9e10c9 to your computer and use it in GitHub Desktop.
Using Git in Other Environments

Git in Other Environments

Eclipse

Eclipse comes with EGit.

image

Bash

Get contrib/completion/git-completion.bash. See bash/zsh completion support for core Git. Then add it to .bashrc.

. ~/git-completion.bash

Customize Your Prompt

. ~/git-prompt.sh
export GIT_PS1_SHOWDIRTYSTATE=1
export PS1='\w$(__git_ps1 " (%s)")\$ '

image

See bash/zsh git prompt support.

References

  1. A1.4 Appendix A: Git in Other Environments - Git in Eclipse
  2. A1.5 Appendix A: Git in Other Environments - Git in IntelliJ / PyCharm / WebStorm / PhpStorm / RubyMine
  3. A1.7 Appendix A: Git in Other Environments - Git in Bash
  4. Graphical Interfaces for Git
@gkhays
Copy link
Author

gkhays commented Apr 11, 2020

image

@gkhays
Copy link
Author

gkhays commented Apr 11, 2020

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment