Sourcetree Setup
- Download and install Sourcetree
- Generate personal access token on GitHub: https://github.xxx/settings/tokens
- Fill in Note (something like Sourcetree or MacBook)
- Check all the checkboxes under the "Select Scopes" section
- Tip: Make sure you enter your email in the "public email" field in GitHub account settings
- Open Sourcetree to complete GitHub connection setup
- Open Preferences → Accounts → Add
- Host: GitHub Enterprise
- Website: https://github.xxx/
- Username: xxx
- Password: Personal access token copied from step 2
- Protocol: SSH
- Save
- Clone repositories into Sourcetree
(1)和git配好之后打开sourcetree,选择clone from URL;
(2)从remote里找想要拉下来的代码
(3)从mdg分支里点commit可以看到所有本地改的代码,push之前先pull一下代码,再选择想要push到git里的代码,选择完成点push。