Nainstalujte git¶
Windows¶
1. Download git¶
- You have to be online all of the time as Android Studio downloads several updates!
- Měly by fungovat všechny verze gitu. For example https://git-scm.com/download/win.
- Poznačte si cestu instalace. Budete ji potřebovat v dalším kroku.
2. Set git path in Android Studio¶
Zadejte do Studia umístění souboru git.exe: File - Settings
V dalším okně: Version Control - Git
Choose correct path: ... /Git/bin (including /bin)
Make sure update method “Merge” is selected.
3. Reboot¶
- Reboot your PC to update System Environment.
4. Check git settings in Android Studio¶
Open Terminal window in Android Studio
Enter “git –version” (without quotation marks!) and press Return
If git is installed and connected properly you will receive an information about the installed version that looks as follows:
Mac¶
- Měly by fungovat všechny verze gitu. For example https://git-scm.com/download/mac
- Use homebrew to install git:
`$ brew install git`
. - For details on installing git see the official git documentation.
- Pokud instalujete git přes homebrew, není třeba měnit žádné předvolby. Pokud by bylo třeba: Najdete je zde: Android Studio - Preferences.