Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers: Tutorial
Showing posts with label Tutorial. Show all posts
Showing posts with label Tutorial. Show all posts

How to amend your last commit in Git repository?

There could be various reasons when you would like to amend your last commit. One of them is improper commit message and/or wrong committer information. In any of the case, you may like to change the previous commit.

 

In this small post, we will learn how to amend your last Git commit message as well as the committer information (username and email). Continue reading to know more.



How to delete a tag from Git remote repository?

There could be some situation when you tagged your code in local Git repository and pushed it to remote and later you decided to delete the tag. This is simple to delete the tag reference from local, but how to perform the same in remote?

 

Today we are going to see the bash command(s) by which you will be able to remove the tag information from Git. Let's see, how!


How to set a specific row color of a WPF ListView/GridView control?

Continuing the series of blog posts on WPF ListView/GridView control, today we will learn how to set the background color (more precisely, ‘the Style’) of a WPF ListView/GridView control’s row based on some specific parameter passed as the data.

 

You may want to give your user a proper visual by providing a different style to that specific row. Let’s discuss with a simple example.


How to align the column header in a WPF ListView/GridView control?

In general case, the header/title of a WPF ListView/GridView columns are aligned in the center and hence in many cases you will need to align the column header/title to left or right (based as per your business requirement).

 

Today we will learn how to do this in the XAML itself by creating a proper style for the column header. Continue reading to know the trick.


How to sort records in a WPF ListView/GridView control?

As we learnt, the 'ListView' control provides you the base to display a set of data items or records in a WPF application. In last blog post, we learnt how to group the records in WPF ListView/GridView controls and design the UI to group using the Expander control.

 

Today in this small blog post, we will learn how to sort the records easily. You can either choose to sort from XAML or code, but here we will discuss how to do it from code.


How to group records in a WPF ListView control?

Many time we need to show a set of records grouped by a specific field. If you are building Windows app using WPF control, it is very simple to implement using the List View control that we already discussed in the last blog post.

 

Today we are going to discuss how easy it is to add support for grouping in the list. Continue to know about it and implement the same with a simple example.



How to get started with WPF ListView control?

The 'ListView' control provides you the base to display a set of data items in a WPF (Windows Presentation Foundation) application in different layouts or views. In case you are working to show a dataset in your WPF app, this post will help you to get started with it.

 

In this blog post, we will learn about the ListView control with a basic layout followed by advance layout with a GridView. Continue reading further.


Git Basics: How to remove files from the working tree and the index?

Earlier we discussed about 'git add' to add files to index, 'git mv' to rename or move files. We have also discussed about 'git commit' to push the changes to staging. Now what to do if one wants to remove a file from working tree and index?

 

We are today going to discuss on this topic. We have a command 'git rm' to handle this case. Let's start today's discussion, part of the 'Git Tutorial Series'.


Git Basics: How to move or rename a file or directory in a workspace?

Hopefully you are finding my posts on Git Basics helpful. As of now, as part of the Git Tutorial Series we learned about the changes, the commit to the staging area, viewing the working tree status and pushing the changes to the remote repository.


Continuing the series, today in this blog post, we will learn how to move or rename a file or directory in a Git workspace and update the Index.


Git Basics: How to Reset your local Git repository branch?

Earlier we learnt how to fetch, pull and push the changes. We also learnt how to stash and clean your current working tree. But what if we want to reset the current HEAD to the original state and start from the beginning?

 

Today we are going to discuss how to do this with the ‘git reset’ command. Continue learning more about Git on my ‘Git Tutorial’ page.


Git Basics: How to remove untracked files from the working tree?

I hope that, you are finding my posts on Git Basics/Git Tutorial helpful. In the last post on this series, we learned "How to stash the changes in a dirty working directory?". Today we are going to discuss how to remove untracked files.

 

Everyone needs to clean the working tree when some job is done or want to reset the directory. Let's learn how to do this using the command "git clean".



Git Basics: How to stash the changes in a dirty working directory?

I hope that, you are finding my articles on Git Tutorials helpful. Till now, as part of the Git Tutorial Series we learned about the changes, the commit to the staging area, viewing the working tree status and pushing the changes to the remote repository.

 

In this part of the tutorial series, we will learn how to stash the changes of a working directory and pop it where/when require. Lets start discussing about “git stash” command and it’s parameters.


Git Basics: How to push your commits to remote repository?

As of now, as part of the Git Tutorial Series we learned about the changes, the commit to the staging area and viewing the working tree status. Once we are fine with the local branch changes, we need to push it to remote repository.

 

In this part of the tutorial, we will learn how to push these commits/changes to remote. Lets start discussing about the “git push” command and it’s various parameters.


Git Basics: How to show the working Git tree status?

In the last two posts of the "Git Basics" series, we learned how to stage changes and save/commit to Git remote repository. I hope, that was clear and easy to understand. Today we are going to see how to show the working tree status.

 

Let's continue learning the "git status" command today with the parameters that you need to know. Stay tuned to read more posts on Git Basics.


Git Basics: How to save/commit changes to Git repository?

In the last post of the series, we covered "Git Add" command to stage changes. Today we are going to discuss "How to commit that staging changes to Git repository", which you will need to perform every time working with it.

 

Let's continue learning about the command "git commit" today with the parameters that you need to learn. Stay tuned to read more and more posts on Git basic series.


Git Basics: How to stage your changes using Git add command?

In the last article, we covered "Git Fetch and Git Pull". Today we are going to discuss another topic on the Git Basics tutorial series i.e. "How to stage your changes to Git repository", which you will find useful while working in Git.

 

Let's continue learning about the command "git add" today with the parameters that you need to know. Stay tuned to read more and more posts on Git basic topics.



Git Basics: How to retrieve from remote repository using Git fetch/pull?

In the last article, we discussed about "Git Tags". Today we are going to discuss another topic "Git Fetch" and "Git Pull", which I hope, will help you to easily work with Git Bash commands to download code from repository.

 

Let's continue learning about "git fetch" and "git pull" today with the commands that you need to know. Stay tuned to read more and more posts on this topic.


Git Basics: How to list, search, show, create and push Git tags?

I hope that the last post on "Git Branches" from my "Tutorials on Git Basics" was easy for you to understand. Today we are going to discuss on another topic "Git Tags", which I hope, will help you to easily work with Git Bash commands.

 

Let's continue learning this today with the commands that you need to know. Stay tuned to get more posts on this topic.


Git Basics: How to list, create, rename, delete a remote connection?

Continuing the on going series on "Git Basics", we will today learn on "remote connections". I hope, you are enjoying reading this series and read the last post "How to create, move, delete, list Git branches?". Bookmark it for future references.

 

Today in this post, we will cover how to create, list, rename and delete a remote connection on local Git repository. We will learn all the related commands.


Git Basics: How to create, move, delete, list Git branches?

Git is now a common tool in software development, for version controlling. In the last post, we described about "How to rename a Git branch?". Today we are going to learn more about Git branches and it's commands.

 

Continue reading to know how to create/rename/move/delete/list Git branches. Also, don't forget to check other posts on Git Basics/Git Cheat sheets.

 
© 2008-2017 Kunal-Chowdhury.com - Microsoft Technology Blog for developers and consumers | Designed by Kunal Chowdhury
Back to top