Create a new repository on GitHub. To avoid errors, do not initialize the new repository with README, license, or gitignore files. You can add these files after your project has been pushed to GitHub. Open Terminal. Change the current working directory to your local project. Initialize the local directory as a Git repository. Add the… Continue reading Adding an existing project to GitHub using the command line
Category: Mobile
How to enable Google-Login + AWS-Cognito in Mobile platform
Create project in Google Filebase(https://console.firebase.google.com/): Creat a Web Client ID on Google Console page:https://console.developers.google.com/apis/credentials?project=mts-service-tips -“Create credentials” -> “OAuth client ID” -“Web application” -> “Create” Copy the Client ID of the Web application you just created to put in your Android gradle file: GOOGLE_WEB_CLIENT_ID=588682943670-9du92ps4tu9j477aqikdq201bpds8d65.apps.googleusercontent.com Copy Client ID from Android Client, put in IAM > Providers >… Continue reading How to enable Google-Login + AWS-Cognito in Mobile platform
Git常用操作命令
reference: http://www.cnblogs.com/xingzhi/archive/2011/09/30/2196214.html http://nvie.com/posts/a-successful-git-branching-model/ 回退到某个版本,放弃这个版本之后的commit git reset f0ad346f8b000add810fd7a6f986c8e813b36a41 放弃最近一次的commit: git reset --soft HEAD1 远程仓库相关命令 检出仓库:$ git clone git://github.com/jquery/jquery.git 查看远程仓库:$ git remote -v 添加远程仓库:$ git remote add name url 删除远程仓库:$ git remote rm name 修改远程仓库:$ git remote set-url --push name newUrl 拉取远程仓库:$ git pull remoteName localBranchName 推送远程仓库:$ git push remoteName localBranchName 分支(branch)操作相关命令 查看本地分支:$ git branch 查看远程分支:$ git branch -r 创建本地分支:$ git branch name… Continue reading Git常用操作命令
How to enable Google-Login + AWS-Cognito in Mobile platform
Create project in Google Filebase(https://console.firebase.google.com/): Creat a Web Client ID on Google Console page:https://console.developers.google.com/apis/credentials?project=mts-service-tips-“Create credentials” -> “OAuth client ID” -“Web application” -> “Create” Copy the Client ID of the Web application you just created to put in your Android gradle file: GOOGLE_WEB_CLIENT_ID=588682943670-9du92ps4tu9j477aqikdq201bpds8d65.apps.googleusercontent.com Copy Client ID from Android Client, put in IAM > Providers > accounts.google.com… Continue reading How to enable Google-Login + AWS-Cognito in Mobile platform
How to make money?
Print them out