GIT F.U.C. (Frequently Used Commands)

Every developer uses GIT every day and this is a pratical list of F.U.C.
(Frequently Used Commands).

When we work on a project based on a standard “Git-flow” situation, we have to create our feature branch using:

This command will check out our code on a branch “feat-XYZ” (and create it if it doesn’t exist) starting from the current branch.

To discover what is the current and the available branches:

To check the status of our branch (uncommitted files and their diffs):

To reset local diffs:

To stash our files and prepare them for a commit:

To create a commit:

To share our code, we have to push on remote our commits:

To receive remote updates:

To rename the last commit:

To merge our branch into another (final branch):

To add a TAG into your project:

To retrieve a list of all tags:

--

--

I’m a Software Developer based in Milan. I use Laravel to create awesome Web Applications and I’m an Open Source enthusiast and supporter.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Andrea Pollastri

I’m a Software Developer based in Milan. I use Laravel to create awesome Web Applications and I’m an Open Source enthusiast and supporter.