github的private可以免費使用了
紀錄一下android studio怎麼傳project上去github
又怎麼在新NB下傳project
** 要開始作業前 先去資料夾 用搜尋功能 把有出現'git'的全刪掉
** github token : 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
**用token就不用輸入帳號密碼 binghan.liu@gmail.com github0977127060
在android studio 要輸入帳密 一直出錯 最後用token登入
傳project上去github
- Sign up and create a GitHub account in www.github.com.
- Download git from https://git-scm.com/downloads and install it in your system.
- Open the project in android studio and go to File -> Settings -> Version Control -> Git.
- Click on test button to test "path to Git executables". If successful message is shown everything is ok, else navigate to git.exe from where you installed git and test again.
- Go to File -> Settings -> Version Control -> GitHub. Enter your email and password used to create GitHub account and click on OK button.
- Then go to VCS -> Import into Version Control -> Share Project on GitHub. Enter Repository name, Description and click Share button.
- In the next window check all files inorder to add files for initial commit and click OK.
- Now the project will be uploaded to the GitHub repository and when uploading is finished we will get a message in android studio showing "Successfully shared project on GitHub". Click on the link provided in that message to go to GitHub repository.
在新NB下傳project
You can directly import github projects into Android Studio. File -> New -> Project from Version Control -> GitHub. Then enter your github username and password.Select the repository and hit clone.
The github repo will be created as a new project in android studio.
怎麼更新檔案上去
Go to VCS -> Git -> Commit file . Then type a commit message and click on commit button
沒有留言:
張貼留言