image

Buenas,

Si como yo estas acostumbrado a trabajar con el command line de Git, (yo no lo conozco a fondo pero si que me conozco algunos de los comandos más básicos), seguramente te preguntarás que opciones son las que se incluyen en el Visual Studio 2012 Update 2 para trabajar con Git. Vamos que para no tener que hacer un Alt+Tab al command prompt cada dos por tres.

Pues bien la página que se han currado los del equipo de producto lo deja bastante claro:

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 our announcement 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

Para que esto funcione necesitas

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

Saludos @ Home

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