修改用户名、密码:
在AndroidStudio的terminal
git config --global user.name "wdf"
git config --global user.email “……”
git config --list获取所有信息
修改URL:
找到项目路径下的.git目录下的config文件
打开直接修改下面地址即可。
其他常用操作命令
Git相关命令介绍之建立仓库
Git global setup:
git config --global user.name "wang"
git config --global user.email "写自己的邮箱"
Create a new repository:
mkdir test
cd test
git init
touch README.md
git add README.md
git commit -m "first commit"
git remote add origin 地址(比如:http://android.git)
git push -u origin master
Push an existing Git repository:
cd existing_git_repo
git remote add origin 地址(比如:http://android.git)
git push -u origin master
Clone an existing Git repository:
git clone 地址(比如:http://android.git)
gitblit相关介绍
http://download.csdn.net/download/danfengw/9686380