DevOps

Best practices when working with Git branches

When doing work on feature branches, it’s important to incorporate production-ready commits from master branch as soon as possible.The below walkthtroughs explain the approach. Covered in this article: Git rebasing a feature branch Git rebasing a feature branch when theres’s a conflicting change Interactive rebase Deleting branches Visualizing commits Very useful scenario – grabbing master …

Best practices when working with Git branches Read More »

Git: useful commands

Comparing the current branch to the master – git diff command You can use git diff command with various flags to see either detailed difference between the branches or just a summary. For example, after modifying file2.txt and adding new file3.txt we commit this change on wip2 branch. Then we view the diff summary: ANOther …

Git: useful commands Read More »