Virtual Species

Delete Git Branch

Git Branch

1. Checkout "MyBranch" before deleting {OldBranch}. It makes "MyBranch" current/working branch.
     $ git checkout {MyBranch}
2. Delete local "MyBranch". This is the safest option for deleting a local branch since branch doesn't get deleted if there is any unmerged changes exist.

Using Git Branches

Software Engineers deal with git branches pretty much every day. Git branches are an integral part of our everyday workflow. To keep it as a reference, we will talk about some every day required git commands for branching including how to create a branch, checkout branch and finally, how git merge can integrate the history of independent branches.

Git Branch
[ Color coded serial numbers represent Git Flow ]
1. List all of the branches in a repository.
     $ git branch
2. Create a new branch called "MyBranch".

List all Modified File Names with Git

Sometime we need to pull up data from specific time span. Suppose, we need to see all the changed files prior to a deployment. Well, its possible with source control. Git has some commands that can help you with that. Here are some of those..

Git Branch
1. This command lists every single modified file names from specific date to now..
$ git whatchanged --since '12/01/2016' --oneline --name-only --pretty=format: | sort | uniq
2. This command lists modified file names from prior days..

Grab The Button...

Grab the above button and add to your blog or website to get easy access to Virtual Species. Simply click the textbox, copy the code and paste where you want to see the button. That's it!

About Author...

My photo

Technophile and believer of 'Be the Change to Change the World' _(Try to ♲)