DEV Community

Joe Hobot
Joe Hobot

Posted on

Share your GitHub Tricks and Tips

What are some of your github tips you would like to share with other Devs? It does not need to be git commands, could be a infrastructure or how you use GitHub projects etc.

Top comments (6)

Collapse
 
jdhillen profile image
J.D. Hillen • Edited

I took a page out of Drew Barontiti's playbook and set up a repo for Documenting code snippets. Anytime I come across something handy, I'll toss it into my Documents repo for later use. It's a much more organizational way of keep track of useful pieces of code.

Original Article - drewbarontini.com/articles/documen...

Collapse
 
sudiukil profile image
Quentin Sonrel

That's general advice but I think the "default" Git(Hub) workflow should be this:

Issue > Fork > Branch > (Work) > Rebase (if needed) > PR > (Discussion & more work if need be) > Merge

IMHO that's the easiest (for you and for the original dev) way of contributing to a project using Git(Hub).

Other random things from experience:

  • Use a shitload of aliases for Git commands, but only when you are familiar with the "real" commands
  • Start small, don't get into the branching/rebasing/cherry-picking madness before mastering the Git basis
  • That's maybe outside the scope of the question but keep track of your issues and PRs with tools like Trello or GitHub's projects
Collapse
 
joehobot profile image
Joe Hobot

Here is my fav github tip:

Use oh my zsh with github enabled plugin, It provides info on which branch you are and if there is diff etc..

Github + zsh

Collapse
 
amit_savani profile image
Amit Patel • Edited
  1. If you are following git workflow then I would suggest to make develop as default branch.

  2. When you are looking at the source code just press t to search(fuzzy) any file by name

  3. I also recommend to use oh my zsh as suggested by

    joehobot image
    . It has many aliases to make you more productive. Also you will see current branch with it's status on the console all the time. So no need to go and check git branch
Collapse
 
theoutlander profile image
Nick Karnik
Collapse
 
ben profile image
Ben Halpern