git相关操作
来源:互联网 发布:ubuntu启动gnome界面 编辑:程序博客网 时间:2024/06/05 07:37
1.git alter username
git config user.name
git config user.email
git config --global user.name "username"git config --global user.email "email"
2.git del remote files
git status
git rm .idea --cached -r
git rm app.iml --cached -r
git add -A
git status
git commit -m "update gitignore"
git push
3.git fetch upstream
https://help.github.com/articles/fork-a-repo/
git remote add upstream xxxx.git
git fetch upstream
git merge upstream/master
git status
git commit -m "xx"
git push
3.2.https://gist.github.com/CristinaSolana/1885435
git pull upstream master
git merge origin/master --allow-unrelated-histories
one command sync
git fetch upstream
1. git merge upstream/master
2.git merge upstream/develop master
git push
4.transfer remote branch
git remote set-url origin ssh://git-codecommit.us-west-2.amazonaws.com/v1/repos/TestAndroid
git status
git push
4.1.right click mouse--> git Bash Here input git clone <remote url>
4.2.1 copy the file where need under vcs
4.2.2. git status
4.3.git add -A
4.4.git status
4.5.git commit -m "info"
4.6.git push
5.0 git set proxy
git config --global http.proxy http://127.0.0.1:1080
git config --global https.proxy https://127.0.0.1:1080
git config --global http.proxy 'socks5://127.0.0.1:1080'
git config --global https.proxy 'socks5://127.0.0.1:1080'
cancel proxy
git config --global --unset http.proxy
git config --global --unset https.proxy
切换分支
git checkout xxxx
6.create a new repository
…or create a new repository on the command lineecho "# TEstx" >> README.mdgit initgit add README.mdgit commit -m "first commit"git remote add origin git@github.com:montotone/TEstx.gitgit push -u origin master------>git pull origin branchname --allow-unrelated-histories…or push an existing repository from the command linegit remote add origin git@github.com:montotone/TEstx.gitgit push -u origin master
- Git 标签相关操作
- git push相关操作
- Git相关操作
- git tag 相关操作
- git相关操作
- git 相关操作
- git tag 相关操作
- git 相关操作
- git的相关操作
- git 相关的操作
- git相关操作
- git相关操作
- Git 相关操作
- Git相关操作命令
- Git相关操作一
- Git相关操作二
- Git相关操作三
- Git相关操作四
- php自动加载__autoload的工作机制
- Android多线程-AsyncTask工作流程(源码)
- 解决vmware“二进制转换与此平台长模式不兼
- onvif设备鉴权
- Qt的文件和目录操作
- git相关操作
- LeNet5源码实现和训练参数
- Test Module
- 常用颜色RGB
- sql分页时出现重复的数据。
- linux多播技术
- IT培训行业揭秘(二)
- 面试的角度诠释Java工程师(二)
- 1021. 个位数统计 (15)