Chapters ▾
  1. 1. Pierwsze kroki

    1. 1.1 Wprowadzenie do kontroli wersji
    2. 1.2 Krótka historia Git
    3. 1.3 Podstawy Git
    4. 1.4 Linia poleceń
    5. 1.5 Instalacja Git
    6. 1.6 Wstępna konfiguracja Git
    7. 1.7 Uzyskiwanie pomocy
    8. 1.8 Podsumowanie
  2. 2. Podstawy Gita

    1. 2.1 Pierwsze repozytorium Gita
    2. 2.2 Rejestrowanie zmian w repozytorium
    3. 2.3 Podgląd historii rewizji
    4. 2.4 Cofanie zmian
    5. 2.5 Praca ze zdalnym repozytorium
    6. 2.6 Tagowanie
    7. 2.7 Aliasy
    8. 2.8 Podsumowanie
  3. 3. Gałęzie Gita

    1. 3.1 Czym jest gałąź
    2. 3.2 Podstawy rozgałęziania i scalania
    3. 3.3 Zarządzanie gałęziami
    4. 3.4 Sposoby pracy z gałęziami
    5. 3.5 Gałęzie zdalne
    6. 3.6 Zmiana bazy
    7. 3.7 Podsumowanie
  4. 4. Git na serwerze

    1. 4.1 Protokoły
    2. 4.2 Uruchomienie Git na serwerze
    3. 4.3 Generowanie Twojego publicznego klucza SSH
    4. 4.4 Konfigurowanie serwera
    5. 4.5 Git Daemon
    6. 4.6 Smart HTTP
    7. 4.7 GitWeb
    8. 4.8 GitLab
    9. 4.9 Inne opcje hostowania przez podmioty zewnętrzne
    10. 4.10 Podsumowanie
  5. 5. Rozproszony Git

    1. 5.1 Rozproszone przepływy pracy
    2. 5.2 Wgrywanie zmian do projektu
    3. 5.3 Utrzymywanie projektu
    4. 5.4 Podsumowanie
  1. 6. GitHub

    1. 6.1 Account Setup and Configuration
    2. 6.2 Contributing to a Project
    3. 6.3 Maintaining a Project
    4. 6.4 Managing an organization
    5. 6.5 Scripting GitHub
    6. 6.6 Summary
  2. 7. Narzędzia Gita

    1. 7.1 Wskazywanie rewizji
    2. 7.2 Interaktywne używanie przechowali
    3. 7.3 Schowek i czyszczenie
    4. 7.4 Signing Your Work
    5. 7.5 Searching
    6. 7.6 Przepisywanie historii
    7. 7.7 Reset Demystified
    8. 7.8 Advanced Merging
    9. 7.9 Rerere
    10. 7.10 Debugowanie z Gitem
    11. 7.11 Moduły zależne
    12. 7.12 Bundling
    13. 7.13 Replace
    14. 7.14 Credential Storage
    15. 7.15 Podsumowanie
  3. 8. Dostosowywanie Gita

    1. 8.1 Konfiguracja Gita
    2. 8.2 Git Attributes
    3. 8.3 Git Hooks
    4. 8.4 An Example Git-Enforced Policy
    5. 8.5 Summary
  4. 9. Git i inne systemy

    1. 9.1 Git jako klient
    2. 9.2 Migracja do Gita
    3. 9.3 Podsumowanie
  5. 10. Mechanizmy wewnętrzne w Git

    1. 10.1 Komendy typu plumbing i porcelain
    2. 10.2 Obiekty Gita
    3. 10.3 Referencje w Git
    4. 10.4 Spakowane pliki (packfiles)
    5. 10.5 Refspec
    6. 10.6 Protokoły transferu
    7. 10.7 Konserwacja i odzyskiwanie danych
    8. 10.8 Environment Variables
    9. 10.9 Podsumowanie
2nd Edition

A1.2 Appendix A: Git in Other Environments - Git in Visual Studio

Git in Visual Studio

Starting with Visual Studio 2013 Update 1, Visual Studio users have a Git client built directly into their IDE. Visual Studio has had source-control integration features for quite some time, but they were oriented towards centralized, file-locking systems, and Git was not a good match for this workflow. Visual Studio 2013’s Git support has been separated from this older feature, and the result is a much better fit between Studio and Git.

To locate the feature, open a project that’s controlled by Git (or just git init an existing project), and select View > Team Explorer from the menu. You’ll see the "Connect" view, which looks a bit like this:

Connecting to a Git repository from Team Explorer.
Figure 159. Connecting to a Git repository from Team Explorer.

Visual Studio remembers all of the projects you’ve opened that are Git-controlled, and they’re available in the list at the bottom. If you don’t see the one you want there, click the "Add" link and type in the path to the working directory. Double clicking on one of the local Git repositories leads you to the Home view, which looks like The "Home" view for a Git repository in Visual Studio.. This is a hub for performing Git actions; when you’re writing code, you’ll probably spend most of your time in the "Changes" view, but when it comes time to pull down changes made by your teammates, you’ll use the "Unsynced Commits" and "Branches" views.

The Home view for a Git repository in Visual Studio.
Figure 160. The "Home" view for a Git repository in Visual Studio.

Visual Studio now has a powerful task-focused UI for Git. It includes a linear history view, a diff viewer, remote commands, and many other capabilities. For complete documentation of this feature (which doesn’t fit here), go to http://msdn.microsoft.com/en-us/library/hh850437.aspx.

AltStyle によって変換されたページ (->オリジナル) /