Brief
Being a .NET developer, I personally use the Visual Studio IDE for the .NET related code development and the VS Code for the front end related development preferably ReactJS and VueJS.
I prefer using the Git from the Visual Studio IDE itself. If something does not work then I switch back to the Git Bash.
A) From the Git Bash
I use the below git command if something does not work in the Visual Studio IDE are:
- git remote prune origin
B) From the Visual Studio
- Git commit
- Git Stash
- Git Stage
- Git Pull
- Git Push
- Git Sync
- Git Compare
- Git merge
Explanation:
- git remote prune origin
For example, suppose you have a local repository with the following branches:
- master
- feature/foo
- feature/bar
And the origin repository has the following branches:
- master
If you run git remote prune origin, Git will delete the feature/foo and feature/bar branches from your local repository, since they no longer exist on the origin repository.
It's important to note that this command only affects references to branches, not the actual branches themselves. If you have any local commits that are not present on the origin repository, those commits will still exist in your local repository after running git remote prune origin.
Comments
Post a Comment