Git
游子2022
曾子曰:“吾日三省吾身:为人谋而不忠乎?与朋友交而不信乎?传不习乎?”
展开
-
Git分支
1.创建本地分支但不会切换到新分支:git branchnew_branch 2.创建分支并切换到新的分支:git checkout -b new_branch3.查看当前分支:git branch4.切换到master分支:git checkout master5.删除分支:git branch -d new_branch原创 2017-04-28 09:24:33 · 532 阅读 · 0 评论 -
Git常用命令
1.设置别名比如,把status设置别名为stgit config --globalalias.st"status"2.原创 2017-04-26 12:39:52 · 243 阅读 · 0 评论 -
git部署(一)下载及安装
1.进入https://git-for-windows.github.io/,点击下载按钮2.解压,安装,选择安装路径,我默认C盘,也就是不改变安装路径,继续下一步3.选择on the desktop与use a truetype font in all console windows两项如图4.继续下一步,git环境选择,选择第二个 这样cmd里也可以运行git如图原创 2017-04-25 23:04:18 · 822 阅读 · 0 评论 -
GIT部署(三)GIT 远程仓库:添加远程库、从远程库克隆
一.Git安装在Windows操作系统下,访问Git下载地址https://git-for-windows.github.io/,如果登不进去的话直接百度搜索Git下载也是可以的.二.注册github账号https://github.com/三.在继续阅读后续内容前,请自行注册GitHub账号。由于你的本地Git仓库和GitHub仓库之间的传输是通过SSH加密的,所以,转载 2017-04-25 21:55:27 · 473 阅读 · 0 评论 -
Git部署(二)注册Git账号
1.链接进入https://github.com/2.注册账号,如图3.如果账号重复或者密码不符合规格,会进入这一步如图,继续注册到正确为止4.注册成功后,选Create an account,进入此界面,选Continue5.继续Submit6.完成后选Start a project7.会出现一段文字,让你绑定邮件,进入你之前设原创 2017-04-25 23:44:15 · 6678 阅读 · 0 评论 -
Git常见错误解决方法
1.fatal: Couldn't find remote ref master或者fatal: 'origin' does not appear to be a git repository以及fatal:Could not read from remote repository.解:則需要重新輸入$ git remote add origingit@github.com:djqiang原创 2017-04-26 20:08:59 · 12657 阅读 · 0 评论 -
创建新的远程仓库,删除远程仓库
1.点击右上角的加号,弹出下来菜单,点击New repository,填写仓库,描述,选public等,最后createrepository,如图所示原创 2017-04-27 12:44:44 · 2786 阅读 · 0 评论 -
git服务器新增用户
转载自:http://blog.csdn.net/augusdi/article/details/28099819Git添加用户(期间要注意要求输入的密码,是新用户密码还是管理者密码): 在新用户机1,新用户要生成密钥对:sudo apt-get install openssh-clientssh-keygen 2,修改公钥名称(用m转载 2017-04-27 20:42:06 · 4267 阅读 · 0 评论