image

Buenas,

 

If like me these used to work with the command line of Git , (I do not know him thoroughly but if I know some of the most basic commands), you surely ask that choices are those included in the Visual Studio 2012 Update 2 to work with Git . We are going to avoid having to make an ALT + tab to command prompt every few minutes.

As well page that have currado the product team leaves it quite clear:

Task Visual Studio Command Prompt

Create a local repository

Yes git-init

Copy a remote repository to your dev machine

Yes git-clone

Fetch and pull changes from a remote repository

Yes (some conflicts can be resolved only at command prompt) git-fetch,git-pull

Get information about a repository

You can if it is in a TFS team project (shown in bold text and with hover info in Team Explorer) git-remote

Commit your changes

Yes git-commit

Amend your last commit. Some typical cases:

No git-commit

Undo a committed change by applying the inverse of the commit. See rolling back changes with revert.

No git-revert

Undo committed changes by returning your local repo to a prior commit and de-referencing the later commit.  See Undoing Things, which warns, “…this is a dangerous command: any changes you made to that file are gone — you just copied another file over it. Don’t ever use this command unless you absolutely know that you don’t want the file.”

No git-reset

Branch and merge

Yes (some conflicts can be resolved only at command prompt). (We plan to post more info on branches. For now, see ourannouncement post.) git-branch,git-merge

Re-order history or combine commits. See Git Branching – Rebasing.

No git-rebase

Push changes to a remote repository

Yes git-push

To make this work you need

Source: http://blogs.msdn.com/b/visualstudioalm/archive/2013/03/08/use-the-git-command-prompt-to-supplement-visual-studio.aspx

Saludos @ La Finca

El Bruno

image image image

Leave a comment

Discover more from El Bruno

Subscribe now to keep reading and get access to the full archive.

Continue reading