Git-TortoiseGit????????????
???????????? ???????[ 2016/8/19 14:18:48 ] ?????????????????? ???ù???
??????????Git???????????????Щ?????????????????Щ??????????????????£??????Git???????????д??????????????
?????????????????cmd????????????cmd??????е???
????????????????????Windows?????????????????????cmd????ConEmu
????ConEmu????????http://www.fosshub.com/ConEmu.html
????1. ???JDK??Git??TortoiseGit???????Android SDK
??????????e汾???£???Win7?????????????Щ????????????????????????????????????
????JDK: jdk-7u75-windows-x64.exe
????Git: git-1.8.3-windows-1374045102000.exe
????TortoiseGit: TortoiseGit-1.8.16.0-64bit.msi
????Android SDK: ???????????????????????????????????????????????????
????2. ?????????????????????????????????????
????Android SDK ???? -->????????Android_Home ???????D:android-sdk
????JDK ???? --> ????????Java_Home ???????C:Program FilesJavajdk1.7.0_75
????Git???? --> ????????Git_Home ??????? C:Program Files (x86)Git
????TortoiseGit???? --> ????????TortoiseGit_Home ???????C:Program FilesTortoiseGit
????????????path???????????·????
????%Java_Home%in;%Java_Home%jrein;%Android_Home%platform-tools;%Android_Home% ools;%Git_Home%in;%Git_Home%cmd;%TortoiseGit_Home%in;
????3. ???Git ????????????????
????1)????????cmd????????Win+R???????cmd??????????棨???????Shift + ????????????????棬?????????????е??????????????????????????????????????????к???cmd???????????????????????????????????????????????????·????C:UsersAdministrator?????·?????????κ??????????????????????????????????????д123456??????clone?????????????????
????2)?????????ssh-keygen –t rsa –C xxxx@xxx.com
????3)????????????????id_rsa
????4)??????????123456 ?????????????????????????浽C:UsersAdministrator ????
??????н???????????
????$ ssh-keygen -t rsa -C username@qq.com
????Generating public/private rsa key pair.
????Enter file in which to save the key (//.ssh/id_rsa): id_rsa
????Enter passphrase (empty for no passphrase):
????Enter same passphrase again:
????Your identification has been saved in id_rsa.
????Your public key has been saved in id_rsa.pub.
????The key fingerprint is:
????08:0f:a3:dd:5f:33:7a:aa:67:ff:e2:c4:1a:5e:21:ac username@qq.com
????4. ?????????????.ssh????????id_rsa???????????
???????????????????C????????????Administrator?????????????????????????????????????????? ?????????C:UsersAdministrator ????????C:UsersAdministrator?????????? .ssh???????????????cmd??????? mkdir .ssh ?????????
???????????ЩGit?汾id_rsa????????????????.ssh??????????Git???????μ?.ssh??????????????????????????????????Git??????????·??????????id_rsa???????????????????????????
????5. ???????????????
??????????????id_rsa.pub???????????????????????????????????????μ?ssh-key???????????????key???棬Title??????????????????????github???????ssh-key????????????
????6. ?????????????????
????????cmd??????????????????????git????
????1?????“git init” ?????git????????????
????2?????“git clone ??????????·??”?????????????
????????????clone????????????id_rsa??????git??????μ?.ssh???£??????????? C:Program Files (x86)Git.ssh
????7. ???????????????
???????????????????????????????????????????????????????????????????????????????????????е???????????????????????????????????????????????á? ????cmd??????????????????????????á?
????????????????????????????
????git config --global user.name “name”
????git config --global user.email “email”
????????????????????????????????????????????????????????
????git config user.name “name”
????git config user.email “email”
????8. ???TortoiseGit??????????????1--->???? .ppk???
????????????2??????????????????????????????????cmd?д?puttygen(??????TortoiseGit????·???????C:Program FilesTortoiseGitinputtygen.exe)
???????????й漲load??????id_rsa???????Save private key????TortoiseGit???????ppk?????id_rsa.ppk??
????9. ???TortoiseGit??????????????2--->????TortoiseGit?????
??????TortoiseGit??????棬?????????????£???????????????????÷?????????·????????????id_rsa.ppk·????????TortoiseGit??Settings??棬?????????????Git???????????????????Name?? Email????Name???????????????????????????????git config???ù?????????????????????
?????????Git?μ?Remote???????????origin????????????Remote????????????????URL???????????Putty??id_rsa.ppk???·??
??????????????TortoiseGit???????????????????pull??commit?????
????????????д??????Git???????????????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11