git client command
git fetch -p //
1,
用这句命令 git fetch --all --prune 可以清除本地仓库的远程分支,有强迫症的可以用一下,效果就是git branch -r看到的分支变少了
2,
//创建本地特性分支
1, git checkout -b developnew
//2 对比修改记录
git difftool
//3 添加所有代码到暂存区,还原某个文件git checkout "文件url"
git add .
// 4 提交本地仓库
git commit -m '注释'
// 5 切换到dev
git checkout develop
// 6 那最新
git pull
// 7 合并特性分支
git merge --no-ff -m '注释'
// 8有冲突,分支变为develop|MERGING
git mergetool
// 9 提交冲突
git commit -m 'merge'
//10 提交代码
git push origin develop
//11 merge 代码
git merge --no-ff
///////////////////////////////
// 12 查看当前代码 源 服务器地址
git remote -v //版本文件
13,
/////////////
使用git 部署代码,git branch -a 里面列出的很多远程的分支,其实都是已经被删除了的。
可在git pull,他们仍旧是存在,如何删除这样的缓存?
git remote prune origin
or
git fetch -p