TFS命令tf:undo(强制签入别人签出的文件)
1.tf程序在文件夹
cd D:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE
2.查找那个人所用到的workspace
tf workspaces /owner:administrator /server:http://172.16.16.8:8092/tfs
3.撤销他的签出(强制)
tf undo /workspace:MJBOOK(工作区名字);mj(用户名)/xxx/xxxxx/aaa.csproj(文件所在的路径) /Server:http://192.168.1.200:8080(TFS服务器) tf undo /workspace:USER-20151208SP; Administrator/ppqaTFS/Reformer.Ems/Ems.Service/Services/ReportExport/CityTotalReportService.cs /Server:http://172.16.16.8:8092/tfs
Git
cd E:\src\boercloude-for-student
git init
git remote add origin https://github.com/ChenQianPing/boercloude-for-student.git
git add .
git commit -m "first commit"
git push -u origin master
以后每次上传,只需要这两个就可以
git add .
git commit -m "first commit"
git push -u origin master
No such file or directory could not read Username for 'https://github.com': terminal prompts disabled
原因使用https方式的时候 在git remote add origin 的https url 里面没有用户名和密码
git remote rm origin
git remote add origin https://ChenQianPing:password@github.com/ChenQianPing/Rdf.git
网友评论