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
- Visual Studio 2012 Update 2 http://www.microsoft.com/en-us/download/details.aspx?id=38188
- Visual Studio Tools for Git si lo que quieres es trabajar con Team Foundation Service http://visualstudiogallery.msdn.microsoft.com/abafc7d6-dcaa-40f4-8a5e-d6724bdb980c
Saludos @ Home
El Bruno

Leave a comment