
Git
tina_tian1
行到水穷处,坐看云起时
展开
-
git 命令 撤销
撤销工作区: git checkout --file撤销add内容: git reset HEAD file原创 2015-10-14 11:39:13 · 254 阅读 · 0 评论 -
git 错误
Error 1:[artogrid@localhost dev]$ git clone http://xxx.xxx@172.16.8.81:7990/scm/cswap/cswapserver.gitInitialized empty Git repository in /home/artogrid/workspace/dev/cswapserver/.git/(gnome-ss...原创 2015-10-08 16:10:47 · 1476 阅读 · 0 评论 -
git 配置
git config --global user.name "username"git config --global user.email "email"原创 2015-10-20 14:38:40 · 533 阅读 · 0 评论 -
git pull
git pull from remote branch to local branch$git pull romote branch原创 2016-11-25 16:18:21 · 237 阅读 · 0 评论 -
git pull error (no local branch)
Error:$ git pullPassword:You asked me to pull without telling me which branch youwant to merge with, and 'branch.master.merge' inyour configuration file does not tell me, either. Pleasespe原创 2016-09-30 15:17:54 · 285 阅读 · 0 评论 -
github remove a repository
1. Open https://github.com/YOUR-USERNAME/YOUR-REPOSITORY/settings2. Under Danger Zone, click "Delete this repository."3. Enter the repository name and delete.原创 2016-09-30 14:13:32 · 438 阅读 · 0 评论 -
git stash
1. 保存现场git stash2. 查看stash 列表git stash list3. 恢复最近现场 (删除)git stash pop4. 恢复之前stash(不删除)git stash pop stash@{num}5. 清空stashgit stash clear原创 2016-01-13 11:16:56 · 250 阅读 · 0 评论 -
Git命令 更新
1. 如果远程有更新,如何在另一终端B更新此更新 a. git fetch b. git pull 如果B不fetch, 在B上git status将看不到此更新原创 2015-10-09 11:10:02 · 398 阅读 · 0 评论 -
linux shell脚本获取git代码
#!/usr/bin/expectset timeout 300spawn git checkout feature/developmentspawn git fetchexpect { "Password:" { send "××××××\r" }}interactspawn git pullexpect { "原创 2015-10-22 16:04:55 · 4978 阅读 · 0 评论 -
Git 命令 比较 [ git diff HEAD -- file ]
git diff HEAD -- business/Makefile.am[root@localhost CSwapServer]# git diff HEAD -- business/Makefile.amdiff --git a/CSwapServer/business/Makefile.am b/CSwapServer/business/Makefile.amindex 8b原创 2015-10-14 10:56:56 · 850 阅读 · 0 评论 -
Git 命令 冲突
error1: You have local changes to 'CBasicServer/Makefile.am'; cannot switch branches.[root@localhost cswapserver]# git checkout feature/developmenterror: You have local changes to 'CBasicServer/Ma原创 2015-10-09 09:43:45 · 886 阅读 · 0 评论 -
Git 命令 创建与合并分支, 查找commit分支
创建与合并分支1. 创建分支 git branch name本地创建,创建远程关联远程方法a:git push --set-upstream origin master方法b: *新分支传到远程tiaxia@TIAXIA8 MINGW64 /c/Workspace/project/UIHouston/VPC-IDM-ADMIN (sonar_code...原创 2015-08-25 14:42:41 · 666 阅读 · 0 评论