3 posts tagged

Git

Tim Berglund on Advanced Git

Ilya Gelman

Nowadays it’s hard to see a front-end developer who’s not using git on a daily basis. Git it is a very powerful and full of features tool, however most people usually don’t get further than basic commands like pull, push or commit.

In his talk, Tim Berglund shows some advanced git techniques that can be helpful in many situations.

On Thursdays we post videos that we believe are worth watching and that can make you a better front-end developer. Have such a video to share? Share with us

Git   Video

Useful Tool: Octotree

Ilya Gelman

Sometimes when looking at some project’s source code on GitHub, it is hard to navigate and find files without cloning the whole repository.

Buu Nguyen has built a great tool to solve this problem: Octotree. We use it when we look and work with open-source libraries.

Octotree is a browser extension that scans the project on GitHub and shows its file structure in tree format that is easy to navigate. This way you can explore any project contents and jump between files instantly. Working with third-party libraries is now more efficient.

Get it here

Git   GitHub   Tools

Useful Tool: SCM Breeze

Ilya Gelman

Git is great. We use it in all our projects. Some people prefer GUI: either built-in VCS integration from VSCode or WebStorm, or stand-alone apps like SourceTree. For the rest of us that are more comfortable with the command line, there is a must have productivity tool: SCM Breeze

Demo from the original repository

It saves time when working with git from the Terminal by adding shortcuts for git commands. Obviously it is faster to write gs instead of git status, gb instead of git branch and grhh rather than git reset HEAD --hard.

To see all git shortcuts added by SCM Breeze, run git_aliases.

Of course you can also easily add such aliases in your shell rc file by yourself, but this tool have even greater feature: file shortcuts. They allow you to reference files by numbers. Imagine that you need to stage 4 files out of 15 for commit. With this tool it would be as easy as gs followed by ga 1-3 6 (translates into git add $1 $2 $3 $6).

Referencing files by numbers is very efficient

This works both with bash and zsh. Get it here.